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
+31 -36
View File
@@ -1,66 +1,61 @@
/* c_m3d_g_cyl.cpp autogenerated by split.py v0.3 at 2021-01-01 14:45:46.600671 */
#include "SComponent/c_m3d_g_cyl.h"
#include "SComponent/c_m3d.h"
// __ct__8cM3dGCylFPC4cXyzff
// cM3dGCyl::cM3dGCyl(const cXyz*, float, float)
asm cM3dGCyl::cM3dGCyl(const cXyz*, float, float) {
nofralloc
#include "SComponent/c_m3d_g_cyl/asm/func_8026F0A8.s"
cM3dGCyl::cM3dGCyl(const cXyz* pCenter, f32 pRadius, f32 pHeight) {
this->SetC(*pCenter);
this->SetR(pRadius);
this->SetH(pHeight);
}
// Set__8cM3dGCylFRC9cM3dGCylS
// cM3dGCyl::Set(const cM3dGCylS&)
asm void cM3dGCyl::Set(const cM3dGCylS&) {
nofralloc
#include "SComponent/c_m3d_g_cyl/asm/func_8026F114.s"
void cM3dGCyl::Set(const cM3dGCylS& other) {
this->SetC(cXyz(other.mCenter));
this->SetR(other.mRadius);
this->SetH(other.mHeight);
}
// Set__8cM3dGCylFRC4cXyzff
// cM3dGCyl::Set(const cXyz&, float, float)
asm void cM3dGCyl::Set(const cXyz&, float, float) {
nofralloc
#include "SComponent/c_m3d_g_cyl/asm/func_8026F180.s"
void cM3dGCyl::Set(const cXyz& pCenter, f32 pRadius, f32 pHeight) {
this->SetC(pCenter);
this->SetR(pRadius);
this->SetH(pHeight);
}
// SetC__8cM3dGCylFRC4cXyz
// cM3dGCyl::SetC(const cXyz&)
asm void cM3dGCyl::SetC(const cXyz&) {
nofralloc
#include "SComponent/c_m3d_g_cyl/asm/func_8026F1DC.s"
void cM3dGCyl::SetC(const cXyz& pCenter) {
mCenter = pCenter;
}
// SetH__8cM3dGCylFf
// cM3dGCyl::SetH(float)
asm void cM3dGCyl::SetH(float) {
nofralloc
#include "SComponent/c_m3d_g_cyl/asm/func_8026F1F8.s"
void cM3dGCyl::SetH(f32 pHeight) {
mHeight = pHeight;
}
// SetR__8cM3dGCylFf
// cM3dGCyl::SetR(float)
asm void cM3dGCyl::SetR(float) {
nofralloc
#include "SComponent/c_m3d_g_cyl/asm/func_8026F200.s"
void cM3dGCyl::SetR(f32 pRadius) {
mRadius = pRadius;
}
// cross__8cM3dGCylCFPC8cM3dGSphP4cXyz
// cM3dGCyl::cross(const cM3dGSph*, cXyz*) const
asm bool cM3dGCyl::cross(const cM3dGSph*, cXyz*) const {
nofralloc
#include "SComponent/c_m3d_g_cyl/asm/func_8026F208.s"
bool cM3dGCyl::cross(const cM3dGSph* pOther, cXyz* pOut) const {
f32 f;
return cM3d_Cross_CylSph(this, pOther, pOut, &f);
}
// cross__8cM3dGCylCFPC8cM3dGCylP4cXyz
// cM3dGCyl::cross(const cM3dGCyl*, cXyz*) const
asm bool cM3dGCyl::cross(const cM3dGCyl*, cXyz*) const {
nofralloc
#include "SComponent/c_m3d_g_cyl/asm/func_8026F22C.s"
bool cM3dGCyl::cross(const cM3dGCyl* pOther, cXyz* pOut) const {
return cM3d_Cross_CylCyl(this, pOther, pOut);
}
// calcMinMax__8cM3dGCylFP4cXyzP4cXyz
// cM3dGCyl::calcMinMax(cXyz*, cXyz*)
asm void cM3dGCyl::calcMinMax(cXyz*, cXyz*) {
nofralloc
#include "SComponent/c_m3d_g_cyl/asm/func_8026F24C.s"
void cM3dGCyl::calcMinMax(cXyz* pMin, cXyz* pMax) {
pMin->x = mCenter.x - mRadius;
pMin->y = mCenter.y;
pMin->z = mCenter.z - mRadius;
pMax->x = mCenter.x + mRadius;
pMax->y = mCenter.y + mHeight;
pMax->z = mCenter.z + mRadius;
}