Ooops
November 28, 2020, 02:50:14 AM

Author Topic: [bb] Sin/Cos Lookup Tables by Techlord [ 1+ years ago ]  (Read 617 times)

Offline BlitzBot

  • Jr. Member
  • **
  • Posts: 1
[bb] Sin/Cos Lookup Tables by Techlord [ 1+ years ago ]
« on: June 29, 2017, 12:28:38 AM »
Title : Sin/Cos Lookup Tables
Author : Techlord
Posted : 1+ years ago

Description : Very fast option if you use a lot of Sin/Cos.  Use like Blitz Sin/Cos: y=Sin2#(degrees)*100

Code :
Code: BlitzBasic
  1. ;SIN/COS Lookup Table
  2. Dim Sin2#(360)
  3. Dim Cos2#(360)
  4. For loop=0 To 359
  5.         Sin2#(loop)=Sin(loop)
  6.         Cos2#(loop)=Cos(loop)
  7. Next


Comments : none...

 

SimplePortal 2.3.6 © 2008-2014, SimplePortal