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"
|
2023-10-18 04:23:34 +00:00
|
|
|
#include "Kyoto/Math/CPlane.hpp"
|
2022-08-16 02:14:28 +00:00
|
|
|
|
|
|
|
#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;
|
2022-12-01 16:16:32 +00:00
|
|
|
class CTransform4f;
|
2022-08-16 02:14:28 +00:00
|
|
|
|
|
|
|
class CFrustumPlanes {
|
|
|
|
public:
|
2024-10-15 05:47:46 +00:00
|
|
|
CFrustumPlanes() {}
|
2022-12-01 16:11:09 +00:00
|
|
|
CFrustumPlanes(const CTransform4f&, float, float, float, bool, float);
|
2022-11-27 23:26:24 +00:00
|
|
|
|
2022-08-16 02:14:28 +00:00
|
|
|
bool BoxInFrustumPlanes(const CAABox& box) const;
|
|
|
|
bool BoxInFrustumPlanes(const rstl::optional_object< CAABox >& box) const;
|
2023-10-18 04:23:34 +00:00
|
|
|
int BoxFrustumPlanesCheck(const CAABox& box) const;
|
2022-08-16 02:14:28 +00:00
|
|
|
bool SphereInFrustumPlanes(const CSphere& sphere) const;
|
|
|
|
bool PointInFrustumPlanes(const CVector3f& point) const;
|
|
|
|
|
|
|
|
private:
|
2023-10-18 04:23:34 +00:00
|
|
|
rstl::reserved_vector< CPlane, 6 > x0_planes;
|
2022-08-16 02:14:28 +00:00
|
|
|
};
|
|
|
|
|
2022-10-09 05:13:17 +00:00
|
|
|
#endif // _CFRUSTUMPLANES
|