| To: | REALbasic Games <realbasic-games at lists dot realsoftware dot com> |
|---|---|
| Subject: | Re: Incrementing or decrementing a heading in radians |
| From: | Asher Dunn <asher at fireyesoftware dot com> |
| Date: | Wed, 31 Aug 2005 13:23:39 -0400 |
| Delivered-to: | realbasic-games at lists dot realsoftware dot com |
| References: | <20050830170037 dot 86C5ED08DB5 at lists dot realsoftware dot com> <000d01c5ade6$addca8d0$6400a8c0 at xp> |
On Aug 31, 2005, at 12:44 AM, Martin Dillon wrote: Using ATan2, right?Actually I'm using ATan. I then parse the result depending on the quadrant that x2,y2 falls in relative to x1,y1, but I eventually get the right answer(i.e. D the direction from x1,y1 to x2,y2). If you need the heading from (x1, y1) to (x2, y2), could you not say: angle = atan2(x2 - x1, y2 - y1) ? Asher Dunn --------------------------------------------------------President and Head Developer of Fireye Software <http://www.fireyesoftware.com/> AIM, Yahoo, MSN: crazedglkid _______________________________________________ Unsubscribe or switch delivery mode: <http://www.realsoftware.com/support/listmanager/> Search the archives of this list here: <http://support.realsoftware.com/listarchives/lists.html> |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: RB3D --> Mach-O vs PEF?, Lance Massey |
|---|---|
| Next by Date: | Re: Incrementing or decrementing a heading in radians, Martin Dillon |
| Previous by Thread: | Re: Incrementing or decrementing a heading in radians, Martin Dillon |
| Next by Thread: | Re: Incrementing or decrementing a heading in radians, Martin Dillon |
| Indexes: | [Date] [Thread] [Top] [All Lists] |