Files
tp/libs/SSystem/SComponent/c_m3d_g_aab.cpp
T

75 lines
1.7 KiB
C++
Raw Normal View History

2021-01-07 02:04:53 +01:00
/* c_m3d_g_aab.cpp autogenerated by split.py v0.3 at 2021-01-01 14:25:53.398196 */
#include "SComponent/c_m3d_g_aab.h"
2021-01-26 23:48:47 +01:00
// additional symbols needed for c_m3d_g_aab.cpp
// autogenerated by split.py v0.3 at 2021-01-01 14:25:53.390342
extern f32 lbl_804551D4;
extern f32 lbl_804551D0;
extern f32 lbl_804551D8;
2021-01-07 02:04:53 +01:00
// Set__8cM3dGAabFPC4cXyzPC4cXyz
2021-01-26 23:48:47 +01:00
void cM3dGAab::Set(const cXyz* pMin, const cXyz* pMax) {
mMin = *pMin;
mMax = *pMax;
2021-01-07 02:04:53 +01:00
}
// CrossY__8cM3dGAabCFPC4cXyz
2021-01-26 23:48:47 +01:00
bool cM3dGAab::CrossY(const cXyz* pOther) const {
if (mMin.x > pOther->x || mMax.x < pOther->x || mMin.z > pOther->z || mMax.z < pOther->z) {
return false;
} else {
return true;
}
2021-01-07 02:04:53 +01:00
}
// UnderPlaneYUnder__8cM3dGAabCFf
2021-01-26 23:48:47 +01:00
bool cM3dGAab::UnderPlaneYUnder(f32 pY) const {
return mMin.y < pY;
2021-01-07 02:04:53 +01:00
}
// TopPlaneYUnder__8cM3dGAabCFf
2021-01-26 23:48:47 +01:00
bool cM3dGAab::TopPlaneYUnder(f32 pY) const {
return mMax.y < pY;
2021-01-07 02:04:53 +01:00
}
// ClearForMinMax__8cM3dGAabFv
2021-01-26 23:48:47 +01:00
void cM3dGAab::ClearForMinMax(void) {
mMin.setAll(lbl_804551D0);
mMax.setAll(lbl_804551D4);
2021-01-07 02:04:53 +01:00
}
// SetMinMax__8cM3dGAabFRC4cXyz
2021-01-26 23:48:47 +01:00
void cM3dGAab::SetMinMax(const cXyz& pMinMax) {
this->SetMin(pMinMax);
this->SetMax(pMinMax);
2021-01-07 02:04:53 +01:00
}
// SetMinMax__8cM3dGAabFRC8cM3dGAab
2021-01-26 23:48:47 +01:00
void cM3dGAab::SetMinMax(const cM3dGAab& pOther) {
this->SetMinMax(pOther.mMin);
this->SetMinMax(pOther.mMax);
2021-01-07 02:04:53 +01:00
}
// SetMin__8cM3dGAabFRC4cXyz
2021-01-26 23:48:47 +01:00
void cM3dGAab::SetMin(const cXyz& pMin) {
mMin.setMin(pMin);
2021-01-07 02:04:53 +01:00
}
// SetMax__8cM3dGAabFRC4cXyz
2021-01-26 23:48:47 +01:00
void cM3dGAab::SetMax(const cXyz& pMax) {
mMax.setMax(pMax);
2021-01-07 02:04:53 +01:00
}
// CalcCenter__8cM3dGAabCFP4cXyz
2021-01-26 23:48:47 +01:00
void cM3dGAab::CalcCenter(cXyz* pOut) const {
PSVECAdd(&mMin, &mMax, pOut);
PSVECScale(pOut, pOut, lbl_804551D8);
2021-01-07 02:04:53 +01:00
}
// PlusR__8cM3dGAabFf
2021-01-26 23:48:47 +01:00
void cM3dGAab::PlusR(f32 pR) {
mMin -= pR;
mMax += pR;
2021-01-07 02:04:53 +01:00
}