mirror of
https://github.com/zeldaret/tp
synced 2026-05-23 23:05:36 -04:00
0cf65151b3
* split c_math * split c_angle * split c_API_controller_pad * split c_API_graphic * split c_bg_s_chk * c_bg_s_gnd_chk split * more c_bg split * split c_cc_d * delete asm * split c_cc_s * split c_lib * split c_m2d and c_m3d_g_aab * split c_m3d_g_cir * split c_m3d_g_cps * split rest of c_m3d_g * split c_m3d * split c_malloc * split c_request * split c_sxyz * split and partly decompile c_xyz * format * c_angle.h * begin c_angle decomp * c_angle * progress adding stub classes for SComponent * more c_m3d * remove some asm and format * more m3d headers * more c_angle decomp * c_lib headers * add public to classes * fix csXyz member names * c_sxyz partly OK * move Zero csXyz to c_sxyz header * c_API_graphic * delete some unused asm * move math extern data, decompile some functions * delete unused asm * fix duplicated c_angle.h * fix an inlined function name, add more inlined functions for c_angle.h (currently unused) * format Co-authored-by: Pheenoh <pheenoh@gmail.com>
50 lines
995 B
C++
50 lines
995 B
C++
/* c_sxyz.cpp autogenerated by split.py v0.3 at 2021-01-01 15:36:38.121811 */
|
|
|
|
#include "SComponent/c_sxyz.h"
|
|
|
|
// __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*(float pFactor) {
|
|
return csXyz(mX * pFactor, mY * pFactor, mZ * pFactor);
|
|
}
|
|
#else
|
|
asm csXyz csXyz::operator*(float) {
|
|
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"
|
|
}
|
|
};
|