Files
tp/libs/SSystem/SComponent/c_sxyz.cpp
T
lepelog 1e105b87f1 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>
2021-01-26 17:48:47 -05:00

53 lines
1.0 KiB
C++

/* c_sxyz.cpp autogenerated by split.py v0.3 at 2021-01-01 15:36:38.121811 */
#include "SComponent/c_sxyz.h"
extern u8 lbl_804550A0;
extern u8 lbl_80430DA8;
// __ct__5csXyzFsss
csXyz::csXyz(s16 pX, s16 pY, s16 pZ) {
mX = pX;
mY = pY;
mZ = pZ;
}
// __pl__5csXyzFR5csXyz
csXyz csXyz::operator+(csXyz& other) {
return csXyz(mX + other.mX, mY + other.mY, mZ + other.mZ);
}
// __apl__5csXyzFR5csXyz
void csXyz::operator+=(csXyz& other) {
mX += other.mX;
mY += other.mY;
mZ += other.mZ;
}
// __mi__5csXyzFR5csXyz
csXyz csXyz::operator-(csXyz& other) {
return csXyz(mX - other.mX, mY - other.mY, mZ - other.mZ);
}
// __ml__5csXyzFf
#ifdef NON_MATCHING
csXyz csXyz::operator*(f32 pFactor) {
return csXyz(mX * pFactor, mY * pFactor, mZ * pFactor);
}
#else
asm csXyz csXyz::operator*(f32) {
nofralloc
#include "SComponent/c_sxyz/asm/func_802674E8.s"
}
#endif
extern "C" {
// __sinit_c_sxyz_cpp
//
asm void __sinit_c_sxyz_cpp(void) {
nofralloc
#include "SComponent/c_sxyz/asm/func_8026758C.s"
}
};