remove asin/acos because they aren't necessary and don't work

This commit is contained in:
jacob1 2018-04-05 23:07:29 -04:00
parent 564a9dfc48
commit 34e73e4d7d
2 changed files with 6 additions and 1054 deletions

File diff suppressed because it is too large Load Diff

View File

@ -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)