some c_m3d (#97)

* decompiled some bgs_chk funcs

* c_m3d_g

* c_math progress

* remove duplicate SComponent headers

* move some variables and decompile a function

* some inlined from debug

* cM3d_2PlaneLinePosNearPos

* fix fabsf and decompile cM3d_CrawVec

* format

* cleanup

* more cleanup

Co-authored-by: Pheenoh <pheenoh@gmail.com>
This commit is contained in:
lepelog
2021-01-26 23:48:47 +01:00
committed by GitHub
parent b8d0da505d
commit 1e105b87f1
135 changed files with 1022 additions and 2738 deletions
+15 -22
View File
@@ -1,38 +1,31 @@
/* c_m3d_g_lin.cpp autogenerated by split.py v0.3 at 2021-01-01 14:48:45.519641 */
#include "SComponent/c_m3d_g_lin.h"
#include "SComponent/c_m3d.h"
// __ct__8cM3dGLinFRC4cXyzRC4cXyz
// cM3dGLin::cM3dGLin(const cXyz&, const cXyz&)
asm cM3dGLin::cM3dGLin(const cXyz&, const cXyz&) {
nofralloc
#include "SComponent/c_m3d_g_lin/asm/func_8026F2A8.s"
}
cM3dGLin::cM3dGLin(const cXyz& pStart, const cXyz& pEnd) : mStart(pStart), mEnd(pEnd) {}
// SetStartEnd__8cM3dGLinFRC4cXyzRC4cXyz
// cM3dGLin::SetStartEnd(const cXyz&, const cXyz&)
asm void cM3dGLin::SetStartEnd(const cXyz&, const cXyz&) {
nofralloc
#include "SComponent/c_m3d_g_lin/asm/func_8026F2E8.s"
void cM3dGLin::SetStartEnd(const cXyz& pStart, const cXyz& pEnd) {
mStart = pStart;
mEnd = pEnd;
}
// SetStartEnd__8cM3dGLinFRC3VecRC3Vec
// cM3dGLin::SetStartEnd(const Vec&, const Vec&)
asm void cM3dGLin::SetStartEnd(const Vec&, const Vec&) {
nofralloc
#include "SComponent/c_m3d_g_lin/asm/func_8026F31C.s"
void cM3dGLin::SetStartEnd(const Vec& pStart, const Vec& pEnd) {
mStart = pStart;
mEnd = pEnd;
}
// CalcPos__8cM3dGLinCFP3Vecf
// cM3dGLin::CalcPos(Vec*, float) const
asm void cM3dGLin::CalcPos(Vec*, float) const {
nofralloc
#include "SComponent/c_m3d_g_lin/asm/func_8026F350.s"
void cM3dGLin::CalcPos(Vec* pOut, f32 pScale) const {
Vec tmp;
PSVECSubtract(&mEnd, &mStart, &tmp);
PSVECScale(&tmp, &tmp, pScale);
PSVECAdd(&tmp, &mStart, pOut);
}
// SetEnd__8cM3dGLinFRC4cXyz
// cM3dGLin::SetEnd(const cXyz&)
asm void cM3dGLin::SetEnd(const cXyz&) {
nofralloc
#include "SComponent/c_m3d_g_lin/asm/func_8026F3C0.s"
void cM3dGLin::SetEnd(const cXyz& pEnd) {
mEnd = pEnd;
}