diff --git a/include/bx/inline/math.inl b/include/bx/inline/math.inl index 684b162..bb34d48 100644 --- a/include/bx/inline/math.inl +++ b/include/bx/inline/math.inl @@ -162,7 +162,7 @@ namespace bx return _a * _a; } - inline void sinCosApprox(float _a, float* _outSin, float* _outCos) + inline void sinCosApprox(float _a, float* _outSinApprox, float* _outCos) { const float aa = _a - floor(_a*kInvPi2)*kPi2; const float absA = abs(aa); @@ -172,7 +172,7 @@ namespace bx const float tmp1 = aa > 0.0f && aa < kPi ? 1.0f : -1.0f; const float sinA = mul(tmp0, tmp1); - *_outSin = sinA; + *_outSinApprox = sinA; *_outCos = cosA; } diff --git a/include/bx/math.h b/include/bx/math.h index 808da6f..0030c23 100644 --- a/include/bx/math.h +++ b/include/bx/math.h @@ -208,7 +208,7 @@ namespace bx /// @remarks The function calculates cosine, and then approximates sine based on the cosine /// result. Therefore calculation of sine is less accurate than calling `bx::sin` function. /// - void sinCosApprox(float _a, float* _outSin, float* _outCos); + void sinCosApprox(float _a, float* _outSinApprox, float* _outCos); /// Returns the sine of the argument _a. ///