JPAMath OK (#401)

This commit is contained in:
hatal175
2023-08-07 18:31:06 +03:00
committed by GitHub
parent dc985026fa
commit bb546a286f
9 changed files with 137 additions and 380 deletions
+4
View File
@@ -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;
+5 -1
View File
@@ -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 */