struct
TConvexVolume
template<typename T>Represents a convex volume defined by planes representing the volume border.
Public
Constructors
TConvexVolume<T>
TConvexVolume<T>() = default
TConvexVolume<T>
TConvexVolume<T>
Creates frustum planes from the provided projection matrix.
Methods
Intersects
Checks does the volume intersects the provided axis aligned box.
This will return true if the box is fully inside the volume.
Intersects
Checks does the volume intersects the provided sphere.
This will return true if the sphere is fully inside the volume.
Contains
Checks if the convex volume contains the provided point.
- p
- Point to check.
- expand
- Optional value to expand the size of the convex volume by the specified value during the check. Negative values shrink the volume.
GetPlanes
Vector<TPlane<T>> GetPlanes() const
Returns the internal set of planes that represent the volume.
GetPlane
Returns the specified plane that represents the volume.
Private
Fields
mPlanes
Vector<TPlane<T>> mPlanes