Math/Frustum: Fix GetAABB dangling ref
This commit is contained in:
parent
4f4d0a3373
commit
9ff1dcc42a
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue