03-27-2005, 09:36 AM
Quote: Heh, its 1 PSET, if I clear, it wouln't look half as pretty..
I'm embarking on 3D, so I havn't got to lookup tables, what are they BTW, you on TYPEs or something? :???:
This is a lut for sin/cos...
Code:
Dim tSin(359) as SINGLE, tCos(359) as SINGLE
For i = 0 to 359
tSin(i) = SIN(i*(Pi/180))
tCos(i) = COS(i*(Pi/180))
Next
'rx! = ax * 3.14/180
'ry! = ay * 3.14/180
'rz! = az * 3.14/180
'totally eliminate that code...
' Just use it this way...
cx! = tCos(ax)
sx! = tSin(ax)
cy! = tCos(ay)
sy! = tSin(ay)
cz! = tCos(az)
sz! = tSin(az)