Removed reliance on sinf/cosf CRT functions.

This commit is contained in:
Branimir Karadžić
2018-01-14 19:13:34 -08:00
parent 44fa4652b1
commit 14521c7406
4 changed files with 91 additions and 9 deletions

View File

@@ -122,6 +122,16 @@ namespace bx
return _a * _a;
}
inline float sin(float _a)
{
return cos(_a - kPiHalf);
}
inline float pow(float _a, float _b)
{
return exp(_b * log(_a) );
}
inline float exp2(float _a)
{
return pow(2.0f, _a);

View File

@@ -125,6 +125,9 @@ namespace bx
///
float pow(float _a, float _b);
///
float exp(float _a);
///
float exp2(float _a);