mirror of
https://github.com/zeldaret/tp
synced 2026-06-02 18:18:59 -04:00
221f40e609
* add "global.h" to files that use it * add MSL_C includes to files that use them * remove dolphin includes from headers that don't need them * remove JSupport includes from headers that don't need them * remove JKernel includes from headers that don't need them * remove JUtility includes from headers that don't need them * remove J3D includes from headers that don't need them * remove J2D includes from headers that don't need them * remove JAudio2 includes from headers that don't need them * remove Z2AudioLib includes from headers that don't need them * remove JMessage includes from headers that don't need them * remove JParticle includes from headers that don't need them * remove SComponent includes from headers that don't need them * remove dol includes from headers that don't need them * sort includes
50 lines
1.4 KiB
C++
50 lines
1.4 KiB
C++
#ifndef C_M3D_G_SPH_H_
|
|
#define C_M3D_G_SPH_H_
|
|
|
|
#include "SSystem/SComponent/c_m3d.h"
|
|
#include "SSystem/SComponent/c_xyz.h"
|
|
#include "dolphin/types.h"
|
|
#include "global.h"
|
|
|
|
class cM3dGCyl;
|
|
|
|
struct cM3dGSphS {
|
|
/* 0x0 */ Vec mCenter;
|
|
/* 0xC */ f32 mRadius;
|
|
}; // Size: 0x10
|
|
|
|
class cM3dGSph {
|
|
private:
|
|
public:
|
|
/* 0x00 */ cXyz mCenter;
|
|
/* 0x0C */ f32 mRadius;
|
|
/* 0x10 vtable */
|
|
|
|
cM3dGSph() {}
|
|
virtual ~cM3dGSph() {}
|
|
void SetC(const cXyz&);
|
|
void Set(const cXyz&, f32);
|
|
void Set(const cM3dGSphS&);
|
|
void SetR(f32);
|
|
bool cross(const cM3dGSph*, cXyz*) const;
|
|
bool cross(const cM3dGCyl*, cXyz*) const;
|
|
void GetMinMaxCube(cXyz&, cXyz&) const;
|
|
const cXyz& GetC(void) const { return mCenter; }
|
|
const f32 GetR(void) const { return mRadius; }
|
|
f32 GetCX(void) const { return mCenter.x; }
|
|
f32 GetCY(void) const { return mCenter.y; }
|
|
f32 GetCZ(void) const { return mCenter.z; }
|
|
|
|
bool Cross(const cM3dGSph* other, f32* f) const { return cM3d_Cross_SphSph(this, other, f); }
|
|
bool Cross(const cM3dGCps* cps, cXyz* xyz) const { return cM3d_Cross_CpsSph(*cps, *this, xyz); }
|
|
bool Cross(const cM3dGCyl* cyl, f32* f) const { return cM3d_Cross_CylSph(cyl, this, f); }
|
|
}; // Size = 0x14
|
|
|
|
STATIC_ASSERT(0x14 == sizeof(cM3dGSph));
|
|
|
|
// additional symbols needed for cM3dGSph
|
|
extern "C" {
|
|
void Set__8cM3dGSphFRC4cXyzf(void);
|
|
}
|
|
|
|
#endif |