mirror of
https://github.com/zeldaret/tp
synced 2026-07-09 23:01:41 -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,31 +1,33 @@
|
||||
/* c_m3d_g_tri.cpp autogenerated by split.py v0.3 at 2021-01-01 14:55:53.593962 */
|
||||
|
||||
#include "SComponent/c_m3d_g_tri.h"
|
||||
#include "SComponent/c_m3d.h"
|
||||
|
||||
// cross__8cM3dGTriCFPC8cM3dGCylP3Vec
|
||||
// cM3dGTri::cross(const cM3dGCyl*, Vec*) const
|
||||
asm bool cM3dGTri::cross(const cM3dGCyl*, Vec*) const {
|
||||
nofralloc
|
||||
#include "SComponent/c_m3d_g_tri/asm/func_8026F7B0.s"
|
||||
bool cM3dGTri::cross(const cM3dGCyl* pCylinder, Vec* out) const {
|
||||
return cM3d_Cross_CylTri(pCylinder, this, out);
|
||||
}
|
||||
|
||||
// setPos__8cM3dGTriFPC3VecPC3VecPC3Vec
|
||||
// cM3dGTri::setPos(const Vec*, const Vec*, const Vec*)
|
||||
asm void cM3dGTri::setPos(const Vec*, const Vec*, const Vec*) {
|
||||
nofralloc
|
||||
#include "SComponent/c_m3d_g_tri/asm/func_8026F7DC.s"
|
||||
void cM3dGTri::setPos(const Vec* pA, const Vec* pB, const Vec* pC) {
|
||||
mA = *pA;
|
||||
mB = *pB;
|
||||
mC = *pC;
|
||||
cM3d_CalcPla(&mA, &mB, &mC, &mPlane.mNormal, &mPlane.mD);
|
||||
}
|
||||
|
||||
// setBg__8cM3dGTriFPC3VecPC3VecPC3VecPC8cM3dGPla
|
||||
// cM3dGTri::setBg(const Vec*, const Vec*, const Vec*, const cM3dGPla*)
|
||||
asm void cM3dGTri::setBg(const Vec*, const Vec*, const Vec*, const cM3dGPla*) {
|
||||
nofralloc
|
||||
#include "SComponent/c_m3d_g_tri/asm/func_8026F85C.s"
|
||||
void cM3dGTri::setBg(const Vec* pA, const Vec* pB, const Vec* pC, const cM3dGPla* pPlane) {
|
||||
mA = *pA;
|
||||
mB = *pB;
|
||||
mC = *pC;
|
||||
mPlane.Set(pPlane);
|
||||
}
|
||||
|
||||
// set__8cM3dGTriFPC3VecPC3VecPC3VecPC3Vec
|
||||
// cM3dGTri::set(const Vec*, const Vec*, const Vec*, const Vec*)
|
||||
asm void cM3dGTri::set(const Vec*, const Vec*, const Vec*, const Vec*) {
|
||||
nofralloc
|
||||
#include "SComponent/c_m3d_g_tri/asm/func_8026F8C8.s"
|
||||
void cM3dGTri::set(const Vec* pA, const Vec* pB, const Vec* pC, const Vec* pNormal) {
|
||||
mA = *pA;
|
||||
mB = *pB;
|
||||
mC = *pC;
|
||||
mPlane.SetupNP(*pNormal, *pA);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user