ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

Trigonometry question

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Ilya Sire
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


Return to posts index

Andreas Brand
Re: Trigonometry question
on 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)


Return to posts index

Ilya Sire
Re: Trigonometry question
on Sep 6, 2018 at 4:30:14 pm

Thank 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.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


Return to posts index


Dan Ebberts
Re: Trigonometry question
on 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



Return to posts index

Ilya Sire
Re: Trigonometry question
on Sep 6, 2018 at 4:55:50 pm

duhhh!! right, it was right there.
Thanks all for helping


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2018 CreativeCOW.net All Rights Reserved
[TOP]