summaryrefslogtreecommitdiff
path: root/include/JSystem/JMath
diff options
context:
space:
mode:
authorTakaRikka <38417346+TakaRikka@users.noreply.github.com>2021-10-11 09:38:53 -0700
committerGitHub <noreply@github.com>2021-10-11 18:38:53 +0200
commita2636e84c3eefa98ad8a24dbb5398b664f3d732a (patch)
tree2d2dd404de4364097f3490c77dfc8167e420da5e /include/JSystem/JMath
parent5084413cb7c8869a866ed552070369b1aadc748f (diff)
J3D setup (#155)
* setup j3d classes * remove asm * fixes * fix newDifferedDisplayList
Diffstat (limited to 'include/JSystem/JMath')
-rw-r--r--include/JSystem/JMath/JMath.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/include/JSystem/JMath/JMath.h b/include/JSystem/JMath/JMath.h
index 802d24f2aa..d71f5de5e7 100644
--- a/include/JSystem/JMath/JMath.h
+++ b/include/JSystem/JMath/JMath.h
@@ -1,6 +1,21 @@
#ifndef JMATH_H
#define JMATH_H
+#include "dolphin/mtx/mtx.h"
#include "dolphin/types.h"
+void JMAMTXApplyScale(const Mtx, Mtx, f32, f32, f32);
+
+inline f32 JMAFastReciprocal(f32 value) {
+ return __fres(value);
+}
+
+namespace JMath {
+
+inline f32 fastReciprocal(f32 value) {
+ return JMAFastReciprocal(value);
+}
+
+}; // namespace JMath
+
#endif /* JMATH_H */