mirror of
https://github.com/DrBeef/Raze.git
synced 2025-01-31 21:20:39 +00:00
- 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:
parent
17914db418
commit
59e8821332
1 changed files with 2 additions and 1 deletions
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue