We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 982f5ad commit 90b0971Copy full SHA for 90b0971
lib/mustachio/factories.rb
@@ -30,7 +30,7 @@
30
# of the upper lip, and the bottom-center of the stache
31
# is mapped to the center of the mouth
32
33
- rotation = -90.0 + (Math.atan(( face['mouth_center']['y'] - face['nose']['y'] ).to_f / ( face['mouth_center']['x'] - face['nose']['x'] ).to_f ) / Math::PI * 180.0)
+ rotation = 90.0 + (Math.atan(( face['mouth_center']['y'] - face['nose']['y'] ).to_f / ( face['mouth_center']['x'] - face['nose']['x'] ).to_f ) / Math::PI * 180.0)
34
desired_height = Math.sqrt(
35
( face['nose']['x'] - face['mouth_center']['x'] ).to_f**2 +
36
( face['nose']['y'] - face['mouth_center']['y'] ).to_f**2
0 commit comments