mirror of
https://github.com/zeldaret/tp
synced 2026-07-10 23:22:01 -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:
@@ -2,79 +2,73 @@
|
||||
|
||||
#include "SComponent/c_m3d_g_aab.h"
|
||||
|
||||
// additional symbols needed for c_m3d_g_aab.cpp
|
||||
// autogenerated by split.py v0.3 at 2021-01-01 14:25:53.390342
|
||||
extern f32 lbl_804551D4;
|
||||
extern f32 lbl_804551D0;
|
||||
extern f32 lbl_804551D8;
|
||||
|
||||
// Set__8cM3dGAabFPC4cXyzPC4cXyz
|
||||
// cM3dGAab::Set(const cXyz*, const cXyz*)
|
||||
asm void cM3dGAab::Set(const cXyz*, const cXyz*) {
|
||||
nofralloc
|
||||
#include "SComponent/c_m3d_g_aab/asm/func_8026EC54.s"
|
||||
void cM3dGAab::Set(const cXyz* pMin, const cXyz* pMax) {
|
||||
mMin = *pMin;
|
||||
mMax = *pMax;
|
||||
}
|
||||
|
||||
// CrossY__8cM3dGAabCFPC4cXyz
|
||||
// cM3dGAab::CrossY(const cXyz*) const
|
||||
asm bool cM3dGAab::CrossY(const cXyz*) const {
|
||||
nofralloc
|
||||
#include "SComponent/c_m3d_g_aab/asm/func_8026EC88.s"
|
||||
bool cM3dGAab::CrossY(const cXyz* pOther) const {
|
||||
if (mMin.x > pOther->x || mMax.x < pOther->x || mMin.z > pOther->z || mMax.z < pOther->z) {
|
||||
return false;
|
||||
} else {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
// UnderPlaneYUnder__8cM3dGAabCFf
|
||||
// cM3dGAab::UnderPlaneYUnder(float) const
|
||||
asm bool cM3dGAab::UnderPlaneYUnder(float) const {
|
||||
nofralloc
|
||||
#include "SComponent/c_m3d_g_aab/asm/func_8026ECD0.s"
|
||||
bool cM3dGAab::UnderPlaneYUnder(f32 pY) const {
|
||||
return mMin.y < pY;
|
||||
}
|
||||
|
||||
// TopPlaneYUnder__8cM3dGAabCFf
|
||||
// cM3dGAab::TopPlaneYUnder(float) const
|
||||
asm bool cM3dGAab::TopPlaneYUnder(float) const {
|
||||
nofralloc
|
||||
#include "SComponent/c_m3d_g_aab/asm/func_8026ECE4.s"
|
||||
bool cM3dGAab::TopPlaneYUnder(f32 pY) const {
|
||||
return mMax.y < pY;
|
||||
}
|
||||
|
||||
// ClearForMinMax__8cM3dGAabFv
|
||||
// cM3dGAab::ClearForMinMax(void)
|
||||
asm void cM3dGAab::ClearForMinMax(void) {
|
||||
nofralloc
|
||||
#include "SComponent/c_m3d_g_aab/asm/func_8026ECF8.s"
|
||||
void cM3dGAab::ClearForMinMax(void) {
|
||||
mMin.setAll(lbl_804551D0);
|
||||
mMax.setAll(lbl_804551D4);
|
||||
}
|
||||
|
||||
// SetMinMax__8cM3dGAabFRC4cXyz
|
||||
// cM3dGAab::SetMinMax(const cXyz&)
|
||||
asm void cM3dGAab::SetMinMax(const cXyz&) {
|
||||
nofralloc
|
||||
#include "SComponent/c_m3d_g_aab/asm/func_8026ED1C.s"
|
||||
void cM3dGAab::SetMinMax(const cXyz& pMinMax) {
|
||||
this->SetMin(pMinMax);
|
||||
this->SetMax(pMinMax);
|
||||
}
|
||||
|
||||
// SetMinMax__8cM3dGAabFRC8cM3dGAab
|
||||
// cM3dGAab::SetMinMax(const cM3dGAab&)
|
||||
asm void cM3dGAab::SetMinMax(const cM3dGAab&) {
|
||||
nofralloc
|
||||
#include "SComponent/c_m3d_g_aab/asm/func_8026ED60.s"
|
||||
void cM3dGAab::SetMinMax(const cM3dGAab& pOther) {
|
||||
this->SetMinMax(pOther.mMin);
|
||||
this->SetMinMax(pOther.mMax);
|
||||
}
|
||||
|
||||
// SetMin__8cM3dGAabFRC4cXyz
|
||||
// cM3dGAab::SetMin(const cXyz&)
|
||||
asm void cM3dGAab::SetMin(const cXyz&) {
|
||||
nofralloc
|
||||
#include "SComponent/c_m3d_g_aab/asm/func_8026EDA4.s"
|
||||
void cM3dGAab::SetMin(const cXyz& pMin) {
|
||||
mMin.setMin(pMin);
|
||||
}
|
||||
|
||||
// SetMax__8cM3dGAabFRC4cXyz
|
||||
// cM3dGAab::SetMax(const cXyz&)
|
||||
asm void cM3dGAab::SetMax(const cXyz&) {
|
||||
nofralloc
|
||||
#include "SComponent/c_m3d_g_aab/asm/func_8026EDE4.s"
|
||||
void cM3dGAab::SetMax(const cXyz& pMax) {
|
||||
mMax.setMax(pMax);
|
||||
}
|
||||
|
||||
// CalcCenter__8cM3dGAabCFP4cXyz
|
||||
// cM3dGAab::CalcCenter(cXyz*) const
|
||||
asm void cM3dGAab::CalcCenter(cXyz*) const {
|
||||
nofralloc
|
||||
#include "SComponent/c_m3d_g_aab/asm/func_8026EE24.s"
|
||||
void cM3dGAab::CalcCenter(cXyz* pOut) const {
|
||||
PSVECAdd(&mMin, &mMax, pOut);
|
||||
PSVECScale(pOut, pOut, lbl_804551D8);
|
||||
}
|
||||
|
||||
// PlusR__8cM3dGAabFf
|
||||
// cM3dGAab::PlusR(float)
|
||||
asm void cM3dGAab::PlusR(float) {
|
||||
nofralloc
|
||||
#include "SComponent/c_m3d_g_aab/asm/func_8026EE68.s"
|
||||
void cM3dGAab::PlusR(f32 pR) {
|
||||
mMin -= pR;
|
||||
mMax += pR;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user