summaryrefslogtreecommitdiff
path: root/include/JSystem/JMath
diff options
context:
space:
mode:
authorTakaRikka <takarikka@outlook.com>2023-02-26 22:18:40 -0800
committerTakaRikka <takarikka@outlook.com>2023-02-26 22:18:40 -0800
commiteae9455a7df805d653aae76de2eec5af8e81fbf4 (patch)
tree2be6809331693f37caeb9f832c0a53082ce94003 /include/JSystem/JMath
parent090dcee01206bf7ba6b2231747f0b083521019f1 (diff)
JUtility / JSupport / misc cleanup
Diffstat (limited to 'include/JSystem/JMath')
-rw-r--r--include/JSystem/JMath/JMATrigonometric.h14
1 files changed, 10 insertions, 4 deletions
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 */