Path: chuka.playstation.co.uk!news From: "Nick Slaven" Newsgroups: scee.yaroze.programming.2d_graphics Subject: Re: Calculating bearings - HELP! Date: Sun, 18 Oct 1998 12:16:40 +0100 Organization: PlayStation Net Yaroze (SCEE) Lines: 23 Message-ID: <70cj1f$s3k5@chuka.playstation.co.uk> References: <3629C00D.4EE4@mdx.ac.uk> NNTP-Posting-Host: lon-dnbsk-038.gbr.compuserve.net X-Newsreader: Microsoft Outlook Express 4.72.3110.1 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 Harvey Robert Cotton wrote in message <3629C00D.4EE4@mdx.ac.uk>... >the bearing from point x1,y1 to point x2,y2 using fixed point! Can There is a fixed point trig library somewhere on this site. try http://www.netyaroze-europe.com/~nslaven/ ;-) cheers Nick S PS: tan b=dx*4096/dy sin b=dx*4096/r cos b=dy*4096/r dx=x2-x1;dy=y2-y1;r=sqrt(dx*dx+dy*dy) the signs of dx & dy will determine the quadrant of the bearing b. b is 0deg due north