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:
@@ -1,52 +1,47 @@
|
||||
/* c_m3d_g_sph.cpp autogenerated by split.py v0.3 at 2021-01-01 14:53:31.074880 */
|
||||
|
||||
#include "SComponent/c_m3d_g_sph.h"
|
||||
#include "SComponent/c_m3d.h"
|
||||
|
||||
// SetC__8cM3dGSphFRC4cXyz
|
||||
// cM3dGSph::SetC(const cXyz&)
|
||||
asm void cM3dGSph::SetC(const cXyz&) {
|
||||
nofralloc
|
||||
#include "SComponent/c_m3d_g_sph/asm/func_8026F648.s"
|
||||
void cM3dGSph::SetC(const cXyz& pCenter) {
|
||||
mCenter = pCenter;
|
||||
}
|
||||
|
||||
// Set__8cM3dGSphFRC4cXyzf
|
||||
// cM3dGSph::Set(const cXyz&, float)
|
||||
asm void cM3dGSph::Set(const cXyz&, float) {
|
||||
nofralloc
|
||||
#include "SComponent/c_m3d_g_sph/asm/func_8026F664.s"
|
||||
void cM3dGSph::Set(const cXyz& pCenter, f32 pRadius) {
|
||||
this->SetC(pCenter);
|
||||
this->SetR(pRadius);
|
||||
}
|
||||
|
||||
// Set__8cM3dGSphFRC9cM3dGSphS
|
||||
// cM3dGSph::Set(const cM3dGSphS&)
|
||||
asm void cM3dGSph::Set(const cM3dGSphS&) {
|
||||
nofralloc
|
||||
#include "SComponent/c_m3d_g_sph/asm/func_8026F6A8.s"
|
||||
void cM3dGSph::Set(const cM3dGSphS& pOther) {
|
||||
this->SetC(cXyz(pOther.mCenter));
|
||||
this->SetR(pOther.mRadius);
|
||||
}
|
||||
|
||||
// SetR__8cM3dGSphFf
|
||||
// cM3dGSph::SetR(float)
|
||||
asm void cM3dGSph::SetR(float) {
|
||||
nofralloc
|
||||
#include "SComponent/c_m3d_g_sph/asm/func_8026F708.s"
|
||||
void cM3dGSph::SetR(f32 pRadius) {
|
||||
mRadius = pRadius;
|
||||
}
|
||||
|
||||
// cross__8cM3dGSphCFPC8cM3dGSphP4cXyz
|
||||
// cM3dGSph::cross(const cM3dGSph*, cXyz*) const
|
||||
asm bool cM3dGSph::cross(const cM3dGSph*, cXyz*) const {
|
||||
nofralloc
|
||||
#include "SComponent/c_m3d_g_sph/asm/func_8026F710.s"
|
||||
bool cM3dGSph::cross(const cM3dGSph* pOther, cXyz* pOut) const {
|
||||
return cM3d_Cross_SphSph(pOther, this, pOut);
|
||||
}
|
||||
|
||||
// cross__8cM3dGSphCFPC8cM3dGCylP4cXyz
|
||||
// cM3dGSph::cross(const cM3dGCyl*, cXyz*) const
|
||||
asm bool cM3dGSph::cross(const cM3dGCyl*, cXyz*) const {
|
||||
nofralloc
|
||||
#include "SComponent/c_m3d_g_sph/asm/func_8026F73C.s"
|
||||
bool cM3dGSph::cross(const cM3dGCyl* pCylinder, cXyz* pOut) const {
|
||||
f32 f;
|
||||
return cM3d_Cross_CylSph(pCylinder, this, pOut, &f);
|
||||
}
|
||||
|
||||
// GetMinMaxCube__8cM3dGSphCFR4cXyzR4cXyz
|
||||
// cM3dGSph::GetMinMaxCube(cXyz&, cXyz&) const
|
||||
asm void cM3dGSph::GetMinMaxCube(cXyz&, cXyz&) const {
|
||||
nofralloc
|
||||
#include "SComponent/c_m3d_g_sph/asm/func_8026F76C.s"
|
||||
void cM3dGSph::GetMinMaxCube(cXyz& pMin, cXyz& pMax) const {
|
||||
pMin.x = mCenter.x - mRadius;
|
||||
pMin.y = mCenter.y - mRadius;
|
||||
pMin.z = mCenter.z - mRadius;
|
||||
pMax.x = mCenter.x + mRadius;
|
||||
pMax.y = mCenter.y + mRadius;
|
||||
pMax.z = mCenter.z + mRadius;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user