prime/include/Kyoto/Math/CFrustumPlanes.hpp
Henrique Gemignani Passos Lima 90f941ccb6 Add CWorldShadow
Former-commit-id: 552dc65a2c7297c50e1a87f14ef49ce2fd4c5ca7
2022-12-01 18:11:09 +02:00

35 lines
734 B
C++

#ifndef _CFRUSTUMPLANES
#define _CFRUSTUMPLANES
#include "types.h"
#include "Kyoto/Math/CVector3f.hpp"
#include "rstl/optional_object.hpp"
#include "rstl/reserved_vector.hpp"
class CAABox;
class CSphere;
class CFrustumPlanes {
public:
class SPlane {
private:
float x;
float y;
float z;
float d;
};
CFrustumPlanes(const CTransform4f&, float, float, float, bool, float);
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< SPlane, 6 > x0_planes;
};
#endif // _CFRUSTUMPLANES