Math/Frustum: Add ComputeCorners and GetAABB

This commit is contained in:
SirLynix
2023-08-25 17:13:07 +02:00
parent d4b2cede15
commit 532b1b2c4d
2 changed files with 33 additions and 0 deletions

View File

@@ -37,6 +37,7 @@ namespace Nz
constexpr bool ApproxEqual(const Frustum& frustum, T maxDifference = std::numeric_limits<T>::epsilon()) const;
constexpr Vector3<T> ComputeCorner(BoxCorner corner) const;
constexpr EnumArray<BoxCorner, Vector3<T>> ComputeCorners() const;
constexpr bool Contains(const BoundingVolume<T>& volume) const;
constexpr bool Contains(const Box<T>& box) const;
@@ -45,6 +46,7 @@ namespace Nz
constexpr bool Contains(const Vector3<T>& point) const;
constexpr bool Contains(const Vector3<T>* points, std::size_t pointCount) const;
constexpr const Box<T>& GetAABB() const;
constexpr const Plane<T>& GetPlane(FrustumPlane plane) const;
constexpr const EnumArray<FrustumPlane, Plane<T>>& GetPlanes() const;