prime/include/Kyoto/Math/CFrustumPlanes.hpp
Luke Street f3e607a3af Renaming & more CActor progress
Former-commit-id: bcfefcc34ae220e5d4f7707c569473819f9f53a4
2022-08-15 22:14:28 -04:00

33 lines
627 B
C++

#ifndef _CFRUSTUMPLANES_HPP
#define _CFRUSTUMPLANES_HPP
#include "types.h"
#include "Kyoto/Math/CVector3f.hpp"
#include "rstl/reserved_vector.hpp"
#include "rstl/optional_object.hpp"
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;
};
#endif