mirror of https://github.com/zeldaret/tp.git
74 lines
2.2 KiB
C++
74 lines
2.2 KiB
C++
//
|
|
// Generated By: dol2asm
|
|
// Translation Unit: c_m3d_g_cyl
|
|
//
|
|
|
|
#include "SSystem/SComponent/c_m3d_g_cyl.h"
|
|
#include "SSystem/SComponent/c_m3d.h"
|
|
#include "dol2asm.h"
|
|
#include "dolphin/types.h"
|
|
|
|
//
|
|
// Declarations:
|
|
//
|
|
|
|
/* 8026F0A8-8026F114 2699E8 006C+00 0/0 1/1 0/0 .text __ct__8cM3dGCylFPC4cXyzff */
|
|
cM3dGCyl::cM3dGCyl(const cXyz* pCenter, f32 pRadius, f32 pHeight) {
|
|
this->SetC(*pCenter);
|
|
this->SetR(pRadius);
|
|
this->SetH(pHeight);
|
|
}
|
|
|
|
/* 8026F114-8026F180 269A54 006C+00 0/0 1/1 4/4 .text Set__8cM3dGCylFRC9cM3dGCylS */
|
|
void cM3dGCyl::Set(const cM3dGCylS& other) {
|
|
this->SetC(cXyz(other.mCenter));
|
|
this->SetR(other.mRadius);
|
|
this->SetH(other.mHeight);
|
|
}
|
|
|
|
/* 8026F180-8026F1DC 269AC0 005C+00 0/0 2/2 1/1 .text Set__8cM3dGCylFRC4cXyzff */
|
|
void cM3dGCyl::Set(const cXyz& pCenter, f32 pRadius, f32 pHeight) {
|
|
this->SetC(pCenter);
|
|
this->SetR(pRadius);
|
|
this->SetH(pHeight);
|
|
}
|
|
|
|
/* 8026F1DC-8026F1F8 269B1C 001C+00 3/3 13/13 257/257 .text SetC__8cM3dGCylFRC4cXyz */
|
|
void cM3dGCyl::SetC(const cXyz& pCenter) {
|
|
mCenter = pCenter;
|
|
}
|
|
|
|
/* 8026F1F8-8026F200 269B38 0008+00 3/3 11/11 197/197 .text SetH__8cM3dGCylFf */
|
|
void cM3dGCyl::SetH(f32 pHeight) {
|
|
mHeight = pHeight;
|
|
}
|
|
|
|
/* 8026F200-8026F208 269B40 0008+00 3/3 6/6 204/204 .text SetR__8cM3dGCylFf */
|
|
void cM3dGCyl::SetR(f32 pRadius) {
|
|
mRadius = pRadius;
|
|
}
|
|
|
|
/* 8026F208-8026F22C 269B48 0024+00 0/0 1/1 0/0 .text cross__8cM3dGCylCFPC8cM3dGSphP4cXyz
|
|
*/
|
|
bool cM3dGCyl::cross(const cM3dGSph* pOther, cXyz* pOut) const {
|
|
f32 f;
|
|
return cM3d_Cross_CylSph(this, pOther, pOut, &f);
|
|
}
|
|
|
|
/* 8026F22C-8026F24C 269B6C 0020+00 0/0 1/1 0/0 .text cross__8cM3dGCylCFPC8cM3dGCylP4cXyz
|
|
*/
|
|
bool cM3dGCyl::cross(const cM3dGCyl* pOther, cXyz* pOut) const {
|
|
return cM3d_Cross_CylCyl(this, pOther, pOut);
|
|
}
|
|
|
|
/* 8026F24C-8026F2A8 269B8C 005C+00 0/0 2/2 0/0 .text calcMinMax__8cM3dGCylFP4cXyzP4cXyz
|
|
*/
|
|
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;
|
|
}
|