Ask a Question related to Macromedia Director Lingo, Design and Development.
-
Desmond22 webforumsuser@macromedia.com #1
atan2
Hi there,
I'm want to calculate the angle between 2 positions (pointa,pointb) on screen and I don't know how.
In flash I would use:
angle=atan2 (ydif,xdif)
where xdif and ydif are the respective x,y differences between pointa and pointb
but director dosen't have atan2.
Can anyone explain to me how to do it ?
Can anyone explain atan (simply)?
Des
Desmond22 webforumsuser@macromedia.com Guest
-
Andrew Morton #2
Re: atan2
Use atan(y, x) - it's undocumented, but it works.
Andrew
Andrew Morton Guest
-
Desmond22 webforumsuser@macromedia.com #3
Re: atan2
Thanks Andrew I'll try that.
Desmond22 webforumsuser@macromedia.com Guest



Reply With Quote

