mirror of
https://github.com/zeldaret/tp
synced 2026-05-31 09:22:07 -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
36 lines
1.1 KiB
C++
36 lines
1.1 KiB
C++
#ifndef C_M3D_G_TRI_H_
|
|
#define C_M3D_G_TRI_H_
|
|
|
|
#include "SSystem/SComponent/c_m3d.h"
|
|
#include "SSystem/SComponent/c_m3d_g_pla.h"
|
|
#include "SSystem/SComponent/c_xyz.h"
|
|
#include "dolphin/types.h"
|
|
|
|
class cM3dGCyl;
|
|
|
|
class cM3dGTri : public cM3dGPla {
|
|
// private:
|
|
public:
|
|
// cM3dGPla mPlane;
|
|
Vec mA;
|
|
Vec mB;
|
|
Vec mC;
|
|
|
|
cM3dGTri() {}
|
|
virtual ~cM3dGTri() {}
|
|
bool cross(const cM3dGCyl*, Vec*) const;
|
|
void setPos(const Vec*, const Vec*, const Vec*);
|
|
void setBg(const Vec*, const Vec*, const Vec*, const cM3dGPla*);
|
|
void set(const Vec*, const Vec*, const Vec*, const Vec*);
|
|
bool Cross(cM3dGCps const& cps, cXyz* xyz) const { return cM3d_Cross_CpsTri(cps, *this, xyz); }
|
|
bool Cross(cM3dGCyl const& cyl, cXyz* xyz) const { return this->cross(&cyl, xyz); }
|
|
bool Cross(cM3dGSph const& sph, cXyz* xyz) const { return cM3d_Cross_SphTri(&sph, this, xyz); }
|
|
bool Cross(cM3dGTri const& other, cXyz* xyz) const {
|
|
return cM3d_Cross_TriTri(*this, other, xyz);
|
|
}
|
|
bool cross(const cM3dGLin* lin, Vec* xyz, bool param_2, bool param_3) const {
|
|
return cM3d_Cross_LinTri(lin, this, xyz, param_2, param_3);
|
|
}
|
|
};
|
|
|
|
#endif |