ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

# Trigonometry question

FAQ   •   VIEW ALL
 Trigonometry question on Sep 6, 2018 at 6:51:48 am

Hi All,
I dont know how to search this question in forum.
How can i find this value ?

Thank you

 Re: Trigonometry questionon Sep 6, 2018 at 9:51:59 am

If 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)

 Re: Trigonometry questionon Sep 6, 2018 at 4:30:14 pm

please take a look this aep file. Maybe it can help abit with the question
12694_angletrigonometrycc12.aep.zip

the 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 sized

I wanted to understand this, is there any tutorial to explain this?
Thank you very much

 Re: Trigonometry questionon Sep 6, 2018 at 4:40:18 pm

In both of your examples, the distance you're looking for should be half the height of the blue rectangle.

Dan