From 92241cc8d555fbbe1807b57220d985c75d41e5e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=91=D1=80=D0=B0=D0=BD=D0=B8=D0=BC=D0=B8=D1=80=20=D0=9A?= =?UTF-8?q?=D0=B0=D1=80=D0=B0=D1=9F=D0=B8=D1=9B?= Date: Wed, 1 May 2024 08:28:18 -0700 Subject: [PATCH] Cleanup. --- include/bx/inline/math.inl | 4 ++-- include/bx/math.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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. ///