- Change internals of bsinf() and bcosf() to use BAM sine functions instead of coverting build angle into radians, then into BAM.

This commit is contained in:
Mitchell Richters 2022-07-23 10:27:16 +10:00
parent 4324f923bc
commit b9ee6c327d

View file

@ -83,7 +83,7 @@ inline int bsin(const int ang, int shift = 0)
}
inline double bsinf(const double ang, const int shift = 0)
{
return g_sin(ang * BAngRadian) * sinscale(shift);
return g_sinbam(ang * BAMUNIT) * sinscale(shift);
}
@ -99,7 +99,7 @@ inline int bcos(const int ang, int shift = 0)
}
inline double bcosf(const double ang, const int shift = 0)
{
return g_cos(ang * BAngRadian) * sinscale(shift);
return g_cosbam(ang * BAMUNIT) * sinscale(shift);
}