Path: chuka.playstation.co.uk!news From: "Kenny Millar" Newsgroups: scee.yaroze.freetalk.english Subject: Re: Maths Functions? Date: Mon, 27 Aug 2001 18:13:45 +0100 Organization: PlayStation Net Yaroze (SCEE) Lines: 19 Message-ID: <9mduur$1sb9@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: pc2-kirk2-0-cust187.ren.cable.ntl.com X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2462.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2462.0000 There are only 256 possible values for the X and Y positions of the sticks, so a look up table would be small and fast. No? -Kenny "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 > >