mirror of
https://github.com/PrimeDecomp/prime.git
synced 2025-06-08 13:53:29 +00:00
Retro seemingly avoided using the Dolphin typedefs in most places, opting to use int/uint instead. This likely means they didn't use u8/s8/u16/s16/etc either. Former-commit-id: 133326ae406a0ebc76f56f8bcb489fda280be2be
34 lines
647 B
C++
34 lines
647 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 CPlane {
|
|
private:
|
|
float x;
|
|
float y;
|
|
float z;
|
|
float 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 // _CFRUSTUMPLANES
|