summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorhatal175 <hatal175@users.noreply.github.com>2023-08-07 18:31:06 +0300
committerGitHub <noreply@github.com>2023-08-07 09:31:06 -0600
commitbb546a286f8c6f18c5fb1da152a34a82d17dbbaa (patch)
treeaa693753417f8161fc91df0cecfbb48f6a070456 /include
parentdc985026fa6545bede38d841b7100eceb34e97e4 (diff)
JPAMath OK (#401)
Diffstat (limited to 'include')
-rw-r--r--include/JSystem/JGeometry.h4
-rw-r--r--include/JSystem/JParticle/JPAMath.h6
2 files changed, 9 insertions, 1 deletions
diff --git a/include/JSystem/JGeometry.h b/include/JSystem/JGeometry.h
index 34a243ee68..c9fb14ecab 100644
--- a/include/JSystem/JGeometry.h
+++ b/include/JSystem/JGeometry.h
@@ -155,6 +155,10 @@ struct TVec3<f32> {
scale(norm);
}
+ f32 length() {
+ return PSVECMag((Vec*)this);
+ }
+
void scale(register f32 sc) {
register f32 z;
register f32 x_y;
diff --git a/include/JSystem/JParticle/JPAMath.h b/include/JSystem/JParticle/JPAMath.h
index 7bb10f6101..0451090843 100644
--- a/include/JSystem/JParticle/JPAMath.h
+++ b/include/JSystem/JParticle/JPAMath.h
@@ -4,9 +4,13 @@
#include "dolphin/mtx/mtx.h"
#include "JSystem/JGeometry.h"
+void JPAGetDirMtx(JGeometry::TVec3<f32> const& param_0, f32 (*param_1)[4]);
+void JPAGetYZRotateMtx(s16 angleY, s16 angleZ, f32 (*param_2)[4]);
void JPAGetXYZRotateMtx(s16 x, s16 y, s16 z, Mtx dst);
void JPASetRMtxTVecfromMtx(f32 const (*param_0)[4], f32 (*param_1)[4],
JGeometry::TVec3<f32>* param_2);
-void JPACalcKeyAnmValue(f32 param_0, u16 param_1, f32 const* param_2);
+f32 JPACalcKeyAnmValue(f32 param_0, u16 param_1, f32 const* param_2);
+void JPASetRMtxSTVecfromMtx(f32 const (*param_0)[4], f32 (*param_1)[4],
+ JGeometry::TVec3<f32>* param_2, JGeometry::TVec3<f32>* param_3);
#endif /* JPAMATH_H */