diff options
Diffstat (limited to 'include/SSystem/SComponent')
| -rw-r--r-- | include/SSystem/SComponent/c_bg_s_shdw_draw.h | 2 | ||||
| -rw-r--r-- | include/SSystem/SComponent/c_m3d_g_aab.h | 4 | ||||
| -rw-r--r-- | include/SSystem/SComponent/c_m3d_g_pla.h | 2 |
3 files changed, 5 insertions, 3 deletions
diff --git a/include/SSystem/SComponent/c_bg_s_shdw_draw.h b/include/SSystem/SComponent/c_bg_s_shdw_draw.h index b6938b9368..6a4fe439e2 100644 --- a/include/SSystem/SComponent/c_bg_s_shdw_draw.h +++ b/include/SSystem/SComponent/c_bg_s_shdw_draw.h @@ -18,6 +18,8 @@ public: void Set(cXyz&, cXyz&); void SetCallback(cBgS_ShdwDraw_Callback); + cM3dGAab* GetBndP() { return &mM3dGAab; } + private: /* 0x14 */ cM3dGAab mM3dGAab; /* 0x30 */ cBgS_ShdwDraw_Callback mCallbackFun; diff --git a/include/SSystem/SComponent/c_m3d_g_aab.h b/include/SSystem/SComponent/c_m3d_g_aab.h index d268ceb5d6..f7658e1e4e 100644 --- a/include/SSystem/SComponent/c_m3d_g_aab.h +++ b/include/SSystem/SComponent/c_m3d_g_aab.h @@ -25,8 +25,8 @@ public: void SetMax(const cXyz&); void CalcCenter(cXyz*) const; void PlusR(f32); - const cXyz& getMaxP(void) const { return mMax; } - const cXyz& getMinP(void) const { return mMin; } + const cXyz* GetMaxP(void) const { return &mMax; } + const cXyz* GetMinP(void) const { return &mMin; } const f32 GetMaxX(void) const { return mMax.x; } const f32 GetMaxY(void) const { return mMax.y; } const f32 GetMaxZ(void) const { return mMax.z; } diff --git a/include/SSystem/SComponent/c_m3d_g_pla.h b/include/SSystem/SComponent/c_m3d_g_pla.h index 17b1e033ca..d6aa2fe51a 100644 --- a/include/SSystem/SComponent/c_m3d_g_pla.h +++ b/include/SSystem/SComponent/c_m3d_g_pla.h @@ -26,7 +26,7 @@ public: f32 getPlaneFunc(const Vec* pPoint) const { return mD + PSVECDotProduct(&mNormal, pPoint); } const cXyz& GetNP() const { return mNormal; } - const cXyz& i_GetNP() const { return mNormal; } + const cXyz* i_GetNP() const { return &mNormal; } f32 GetD() const { return mD; } void SetupFrom3Vtx(const Vec* v1, const Vec* v2, const Vec* v3) { cM3d_CalcPla(v1, v2, v3, &mNormal, &mD); |
