mirror of
https://github.com/zeldaret/ss
synced 2026-06-21 08:12:19 -04:00
2ecf6509dd
* begin work * fixup modifications to d_a_base header * progress * update from main again (forgor to fetch) * progress * Basically done * clean up some inlines * some at/tg hit typing and tubo naming * more naming
42 lines
784 B
C++
42 lines
784 B
C++
#ifndef C_M3D_G_SPH_H
|
|
#define C_M3D_G_SPH_H
|
|
|
|
#include "d/col/c/c_m3d_g_tri.h"
|
|
#include "m/m_vec.h"
|
|
|
|
class cM3dGSph {
|
|
public:
|
|
/* 0x00 */ mVec3_c mCenter;
|
|
/* 0x0C */ f32 mRadius;
|
|
/* 0x10 */ f32 mRatio;
|
|
cM3dGSph();
|
|
|
|
void SetC(const mVec3_c &);
|
|
void Set(const mVec3_c *, f32);
|
|
void SetR(f32);
|
|
void SetC(f32, f32, f32);
|
|
|
|
f32 GetYDist(f32) const;
|
|
bool Cross(const cM3dGTri *, f32 *, mVec3_c *);
|
|
void Clamp(const mVec3_c &, mVec3_c &) const;
|
|
|
|
bool Cross(cM3dGUnk &, mVec3_c *);
|
|
bool Cross(cM3dGUnk &, f32 *);
|
|
|
|
void SetRatio(f32);
|
|
|
|
const mVec3_c &GetC() const {
|
|
return mCenter;
|
|
}
|
|
mVec3_c &GetC() {
|
|
return mCenter;
|
|
}
|
|
|
|
const f32 &GetR() const {
|
|
return mRadius;
|
|
}
|
|
|
|
}; // Size = 0x14
|
|
|
|
#endif
|