Files
tww/include/SSystem/SComponent/c_m3d_g_pla.h
T
Jasper St. Pierre 7504c94665 cm3d work
2023-09-30 20:26:41 -07:00

26 lines
553 B
C++

#ifndef C_M3D_G_PLA_H_
#define C_M3D_G_PLA_H_
#include "SSystem/SComponent/c_xyz.h"
#include "dolphin/mtx/vec.h"
// Plane with a normal
class cM3dGPla {
public:
/* 0x00 */ cXyz mNormal;
/* 0x0C */ f32 mD;
/* 0x10 vtable */
cM3dGPla() {}
void CalcAngleXz(short* pAngleX, short* pAngleY) const;
void SetupNP0(const Vec&, const Vec&);
f32 getPlaneFunc(const Vec *p) const {
return mD + VECDotProduct(&mNormal, p);
}
const cXyz * GetNP() const { return &mNormal; }
virtual ~cM3dGPla() {}
};
#endif