2022-10-09 05:13:17 +00:00
|
|
|
#ifndef _CFRUSTUMPLANES
|
|
|
|
#define _CFRUSTUMPLANES
|
2022-08-16 02:14:28 +00:00
|
|
|
|
|
|
|
#include "types.h"
|
|
|
|
|
|
|
|
#include "Kyoto/Math/CVector3f.hpp"
|
|
|
|
|
|
|
|
#include "rstl/optional_object.hpp"
|
2022-09-18 06:05:46 +00:00
|
|
|
#include "rstl/reserved_vector.hpp"
|
2022-08-16 02:14:28 +00:00
|
|
|
|
|
|
|
class CAABox;
|
|
|
|
class CSphere;
|
|
|
|
|
|
|
|
class CPlane {
|
|
|
|
private:
|
|
|
|
f32 x;
|
|
|
|
f32 y;
|
|
|
|
f32 z;
|
|
|
|
f32 d;
|
|
|
|
};
|
|
|
|
|
|
|
|
class CFrustumPlanes {
|
|
|
|
public:
|
|
|
|
bool BoxInFrustumPlanes(const CAABox& box) const;
|
|
|
|
bool BoxInFrustumPlanes(const rstl::optional_object< CAABox >& box) const;
|
|
|
|
bool SphereInFrustumPlanes(const CSphere& sphere) const;
|
|
|
|
bool PointInFrustumPlanes(const CVector3f& point) const;
|
|
|
|
|
|
|
|
private:
|
|
|
|
rstl::reserved_vector< CPlane, 6 > x0_planes;
|
|
|
|
};
|
|
|
|
|
2022-10-09 05:13:17 +00:00
|
|
|
#endif // _CFRUSTUMPLANES
|