mirror of
https://github.com/TwilitRealm/dusklight
synced 2026-06-18 06:15:20 -04:00
11bf642871
* decompiled some bgs_chk funcs * c_m3d_g * c_math progress * remove duplicate SComponent headers * move some variables and decompile a function * some inlined from debug * cM3d_2PlaneLinePosNearPos * fix fabsf and decompile cM3d_CrawVec * format * cleanup * more cleanup Co-authored-by: Pheenoh <pheenoh@gmail.com>
36 lines
1.0 KiB
C++
36 lines
1.0 KiB
C++
#ifndef C_M3D_G_AAB_H_
|
|
#define C_M3D_G_AAB_H_
|
|
|
|
#include "SComponent/c_xyz.h"
|
|
#include "global.h"
|
|
|
|
// Axis aligned bounding box
|
|
class cM3dGAab {
|
|
private:
|
|
public:
|
|
cXyz mMin;
|
|
cXyz mMax;
|
|
|
|
virtual ~cM3dGAab();
|
|
void Set(const cXyz*, const cXyz*);
|
|
bool CrossY(const cXyz*) const;
|
|
bool UnderPlaneYUnder(f32) const;
|
|
bool TopPlaneYUnder(f32) const;
|
|
void ClearForMinMax(void);
|
|
void SetMinMax(const cXyz&);
|
|
void SetMinMax(const cM3dGAab&);
|
|
void SetMin(const cXyz&);
|
|
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 f32 GetMaxX(void) const { return mMax.GetX(); }
|
|
const f32 GetMaxY(void) const { return mMax.GetY(); }
|
|
const f32 GetMaxZ(void) const { return mMax.GetZ(); }
|
|
const f32 GetMinX(void) const { return mMin.GetX(); }
|
|
const f32 GetMinY(void) const { return mMin.GetY(); }
|
|
const f32 GetMinZ(void) const { return mMin.GetZ(); }
|
|
};
|
|
|
|
#endif |