mirror of
https://github.com/zeldaret/tp
synced 2026-07-10 07:06:50 -04:00
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:
@@ -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;
|
||||
}
|
||||
Reference in New Issue
Block a user