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

Tags: ,
 If you like this post then please subscribe to my full feed RSS.
   Similar Posts:

Leave a Comment

Name (required):

E-mail (will not be published) (required):

Website (optional):

Comment: