Path: chuka.playstation.co.uk!news From: "Nick Slaven" Newsgroups: scee.yaroze.freetalk.english Subject: Re: Maths Functions? Date: Tue, 28 Aug 2001 11:17:49 +0100 Organization: IO Productions Ltd Lines: 31 Message-ID: <9mfr8i$1sb23@www.netyaroze-europe.com> References: <9mdpv0$1sb3@www.netyaroze-europe.com> <9mdqcu$1sb4@www.netyaroze-europe.com> <9mdt9h$1sb6@www.netyaroze-europe.com> NNTP-Posting-Host: host213-123-178-111.in-addr.btopenworld.com X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.00.2919.6700 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700 Hi there, I while ago I wrote a trig library to do all sqrt, sin, cos, tan, arcsin, arctan, and arccos using fixed point integer maths & lookup tables, it may be of some use. Here's a link to the page. http://www.netyaroze-europe.com/~nslaven/triginfo.htm there are a few inaccuracies in the look up table (due to using a value of 3.142 for PI in the lookup tables), but it was fairly nippy. cheers Nick "Chris Wallace" wrote in message news:9mdt9h$1sb6@www.netyaroze-europe.com... > ok, thanks for the function, although if its slow it probably wont work for > what im doing. I need to find the angle that the left analogue stick is > pointing in and how far in that direction. Im using pythag for the distance > and need the square root to find it. This of course is done ever frame so > needs to be quite simple.. =\ > Chris > >