This commit is contained in:
Бранимир Караџић
2024-05-01 08:28:18 -07:00
parent c5876a7391
commit 92241cc8d5
2 changed files with 3 additions and 3 deletions

View File

@@ -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;
}

View File

@@ -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.
///