View Single Post
  #14   Spotlight this post!  
Unread 26-01-2004, 23:00
Ryan Cumings's Avatar
Ryan Cumings Ryan Cumings is offline
Programmer and University Rejected
#0134 (Team Discovery)
Team Role: Programmer
 
Join Date: Jan 2004
Rookie Year: 2000
Location: Pembroke, NH
Posts: 65
Ryan Cumings is an unknown quantity at this point
Send a message via AIM to Ryan Cumings
Re: Global Constants

Posted the code but plum forgot to describe how the values in the table should run, basically they should run something like this, borrowed the table from deltacoder to show as an example. The table can be generated by using
ti=cos(PI / 2 * i / M) * 255
where ti is the table element, i is the element number and M is the number of table elements

cos_lookup_table[90] =
{ 0, 4, 9, 13, 18, 22, 27, 31, 35, 40,
44, 49, 53, 57, 62, 66, 70, 75, 79, 83,
87, 91, 96, 100,104,108,112,116,120,124,
128,131,135,139,142,146,150,153,157,160,
164,167,171,174,177,180,183,186,190,192,
195,198,201,204,206,209,211,214,216,219,
221,223,225,227,229,231,233,235,236,238,
240,241,243,244,245,246,247,248,249,250,
251,252,253,253,254,254,254,255,255,255 };