Use stdlib for trigonometric functions

Profiling showed this performed significantly faster than the RageFast_ implementations.
This commit is contained in:
sukibaby
2024-08-06 16:18:39 -07:00
committed by teejusb
parent 64fa8e9971
commit e60cf2aa0d
9 changed files with 81 additions and 144 deletions
+1 -1
View File
@@ -33,7 +33,7 @@ struct TweenDecelerate: public ITween
};
struct TweenSpring: public ITween
{
float Tween( float f ) const { return 1 - RageFastCos( f*PI*2.5f )/(1+f*3); }
float Tween( float f ) const { return 1 - std::cos( f*PI*2.5f )/(1+f*3); }
ITween *Copy() const { return new TweenSpring(*this); }
};