remove asin/acos because they aren't necessary and don't work
This commit is contained in:
parent
564a9dfc48
commit
34e73e4d7d
1032
data/TrigTables.h
1032
data/TrigTables.h
File diff suppressed because it is too large
Load Diff
@ -1,6 +1,12 @@
|
||||
#include <cmath>
|
||||
#include "TrigTables.h"
|
||||
|
||||
/**
|
||||
* Fast trig functions, using lookup table
|
||||
* Only use for things that require no accuracy, like cyclone tool
|
||||
* Do not use for any core simulation stuff
|
||||
*/
|
||||
|
||||
float orig_atan(float val)
|
||||
{
|
||||
return atan(val);
|
||||
@ -48,28 +54,6 @@ float tan(float angle)
|
||||
return tanLookupTable[i];
|
||||
}
|
||||
|
||||
float asin(float angle)
|
||||
{
|
||||
angle *= 81.4873;
|
||||
if (angle > 256 || angle < 0)
|
||||
{
|
||||
return 0.0;
|
||||
}
|
||||
|
||||
return asinLookupTable[(int)(angle + 256)];
|
||||
}
|
||||
|
||||
float acos(float angle)
|
||||
{
|
||||
angle *= 81.4873;
|
||||
if (angle > 256 || angle < 0)
|
||||
{
|
||||
return 0.0;
|
||||
}
|
||||
|
||||
return acosLookupTable[(int)(angle + 256)];
|
||||
}
|
||||
|
||||
float atan(float ratio)
|
||||
{
|
||||
if (ratio > 20)
|
||||
|
Loading…
Reference in New Issue
Block a user