prime/include/Kyoto/Math/CFrustumPlanes.hpp
Phillip Stephens c1e1f00373 Nearly match CFrustumPlanes
Former-commit-id: 3494528f08e52d35f219bc2c4f24a9d41725bea1
2023-10-17 21:23:45 -07:00

31 lines
756 B
C++

#ifndef _CFRUSTUMPLANES
#define _CFRUSTUMPLANES
#include "types.h"
#include "Kyoto/Math/CVector3f.hpp"
#include "Kyoto/Math/CPlane.hpp"
#include "rstl/optional_object.hpp"
#include "rstl/reserved_vector.hpp"
class CAABox;
class CSphere;
class CTransform4f;
class CFrustumPlanes {
public:
CFrustumPlanes(const CTransform4f&, float, float, float, bool, float);
bool BoxInFrustumPlanes(const CAABox& box) const;
bool BoxInFrustumPlanes(const rstl::optional_object< CAABox >& box) const;
int BoxFrustumPlanesCheck(const CAABox& box) const;
bool SphereInFrustumPlanes(const CSphere& sphere) const;
bool PointInFrustumPlanes(const CVector3f& point) const;
private:
rstl::reserved_vector< CPlane, 6 > x0_planes;
};
#endif // _CFRUSTUMPLANES