Path: chuka.playstation.co.uk!scea!greg_labrec@interactive.sony.com From: mperdue@iquest.net (Mario Perdue) Newsgroups: scea.yaroze.programming.codewarrior Subject: Re: point rotation using integer math Date: Wed, 28 May 1997 15:06:26 GMT Organization: SCEA Net Yaroze News Lines: 16 Message-ID: <338c48cb.1557482@205.149.189.29> References: <338B8A1C.2781@scad.edu> NNTP-Posting-Host: filter-hrtc1.nortel.net X-Newsreader: Forte Free Agent 1.1/32.230 On Tue, 27 May 1997 21:27:56 -0400, Steve LaVietes wrote: >Given that CWs MIPS compiler doesn't support floating point values >currently, how might one rotate a point using only integer math. The >method that I regularly use requires trig functions that return only >floating point values. > >Any suggestions? The Yaroze library contains several Matrix functions to handle Rotation, Scaling and such. For a full description, look at the documentation for RotMatrix(), RotMatrixX(), ScaleMatrix(), etc. These functions were written to work with non-floating point data. Mario