Activity › Forums › Adobe After Effects Expressions › Trigonometry question
-
Trigonometry question
Posted by Ilya Sire on September 6, 2018 at 6:51 amIlya Sire replied 7 years, 8 months ago 3 Members · 4 Replies -
4 Replies
-
Andreas Brand
September 6, 2018 at 9:51 amIf the tip of the triangle is pointing to the middle of the red rectangle and the angular is really 45 degrees (it looks like 90 degrees) it should be something like this:
Math.tan(90-(45/2)) * (450/2)
If the angular of the red rectangle is 90 degrees it should be this:
Math.tan(45) * (450/2)
-
Ilya Sire
September 6, 2018 at 4:30 pmThank you for your reply, im sorry i miss explain about the angle degree
please take a look this aep file. Maybe it can help abit with the question
12694_angletrigonometrycc12.aep.zipthe Red box is actually a square with the anchor point top right, rotation 45, position at the edge of the blue box size
the blue box height, width is dynamic sizedI wanted to understand this, is there any tutorial to explain this?
Thank you very much -
Dan Ebberts
September 6, 2018 at 4:40 pmIn both of your examples, the distance you’re looking for should be half the height of the blue rectangle.
Dan
Reply to this Discussion! Login or Sign Up
