Math/Frustum: Fix GetAABB dangling ref

This commit is contained in:
SirLynix 2023-08-28 19:16:39 +02:00
parent 4f4d0a3373
commit 9ff1dcc42a
2 changed files with 2 additions and 2 deletions

View File

@ -46,7 +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 Box<T> GetAABB() const;
constexpr const Plane<T>& GetPlane(FrustumPlane plane) const;
constexpr const EnumArray<FrustumPlane, Plane<T>>& GetPlanes() const;

View File

@ -245,7 +245,7 @@ namespace Nz
}
template<typename T>
constexpr const Box<T>& Frustum<T>::GetAABB() const
constexpr Box<T> Frustum<T>::GetAABB() const
{
EnumArray<BoxCorner, Vector3<T>> corners = ComputeCorners();