- Use the interpolated sine table for tangent instead of Cephis math in TAngle<T>.

* Performed testing and it's ~6.5x faster this way.
This commit is contained in:
Mitchell Richters 2022-11-13 21:21:51 +11:00 committed by Christoph Oelckers
parent 17914db418
commit 59e8821332

View file

@ -1455,7 +1455,8 @@ public:
double Tan() const
{
return vec_t(g_tan(Radians()));
auto bam = BAMs();
return g_sinbam(bam) / g_cosbam(bam);
}
// This is for calculating vertical velocity. For high pitches the tangent will become too large to be useful.