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

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