Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
A Beautiful accident! Weird, take a look..
#21
Quote:Smile 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)
Reply


Messages In This Thread
A Beautiful accident! Weird, take a look.. - by Anonymous - 03-26-2005, 01:16 PM
you asked for it... XD - by Anonymous - 03-26-2005, 02:17 PM
A Beautiful accident! Weird, take a look.. - by Anonymous - 03-26-2005, 04:00 PM
A Beautiful accident! Weird, take a look.. - by Dr_Davenstein - 03-27-2005, 09:36 AM
A Beautiful accident! Weird, take a look.. - by Anonymous - 03-28-2005, 05:35 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)