mirror of
https://github.com/bkaradzic/bx.git
synced 2026-02-17 20:52:37 +01:00
Removed reliance on sinf/cosf CRT functions.
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -125,6 +125,9 @@ namespace bx
|
||||
///
|
||||
float pow(float _a, float _b);
|
||||
|
||||
///
|
||||
float exp(float _a);
|
||||
|
||||
///
|
||||
float exp2(float _a);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user