Angle between 2 points

In adobe director, to get the angle between 2 points is not difficult.
Try this code:
on getangle
pt1= point(100,100)
pt2 = point(100,20)
sl = pt2 – pt1
myangle = atan(sl[2],sl[1]) * 180 / pi
put myangle
end

angle btw 2 points

Related Posts Plugin for WordPress, Blogger...
Suscribe Now!Subscribe to get free latest updates by email. Like Us!Like our Facebook Page.


LIKE It & Leave A Comments

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>