From eae9455a7df805d653aae76de2eec5af8e81fbf4 Mon Sep 17 00:00:00 2001 From: TakaRikka Date: Sun, 26 Feb 2023 22:18:40 -0800 Subject: JUtility / JSupport / misc cleanup --- include/JSystem/JMath/JMATrigonometric.h | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) (limited to 'include/JSystem/JMath') diff --git a/include/JSystem/JMath/JMATrigonometric.h b/include/JSystem/JMath/JMATrigonometric.h index a01b717ca8..027eafb092 100644 --- a/include/JSystem/JMath/JMATrigonometric.h +++ b/include/JSystem/JMath/JMATrigonometric.h @@ -38,12 +38,18 @@ extern TAtanTable atanTable_; extern TAsinAcosTable asinAcosTable_; }; // namespace JMath -inline f32 JMASSin(s16 s) { - return JMath::sincosTable_.sinShort(s); +inline f32 JMASCosShort(s16 v) { + return JMath::sincosTable_.cosShort(v); +} +inline f32 JMASinShort(s16 v) { + return JMath::sincosTable_.sinShort(v); } -inline f32 JMASCos(s16 s) { - return JMath::sincosTable_.cosShort(s); +inline f32 JMASCos(s16 v) { + return JMASCosShort(v); +} +inline f32 JMASSin(s16 v) { + return JMASinShort(v); } #endif /* JMATRIGONOMETRIC_H */ -- cgit v1.2.3