struct
TAABox
template<typename T>Axis aligned box represented by minimum and maximum point.
Public
Constructors
Methods
~TAABox<T>
SetExtents
Sets the minimum and maximum corners.
Scale
Scales the box around the center by multiplying its extents with the provided scale.
GetCorner
Returns the coordinates of a specific corner.
Merge
Merges the two boxes, creating a new bounding box that encapsulates them both.
Merge
Expands the bounding box so it includes the provided point.
Transform
Transforms the bounding box by the given matrix.
TransformAffine
Transforms the bounding box by the given matrix.
Intersects
Returns true if this and the provided box intersect.
Intersects
Returns true if the sphere intersects the bounding box.
Intersects
Returns true if the plane intersects the bounding box.
Intersects
Ray / box intersection, returns a boolean result and nearest distance to intersection.
Intersects
Ray / box intersection, returns boolean result and near and far intersection distance.
GetSize
Size of the box (difference between minimum and maximum corners)
GetExtents
Extents of the box (distance from center to one of the corners)
GetRadius
Radius of a sphere that fully encompasses the box.
GetVolume
Size of the volume in the box.
Contains
Returns true if the provided point is inside the bounding box.
Contains
Returns true if the provided point is inside the bounding box while expanding the bounds by in every direction.
Contains
Returns true if the provided bounding box is completely inside the bounding box.
~TAABox
SetExtents
Sets the minimum and maximum corners.
Scale
Scales the box around the center by multiplying its extents with the provided scale.
GetCorner
Returns the coordinates of a specific corner.
Merge
Merges the two boxes, creating a new bounding box that encapsulates them both.
Merge
Expands the bounding box so it includes the provided point.
Transform
Transforms the bounding box by the given matrix.
TransformAffine
Transforms the bounding box by the given matrix.
Intersects
Returns true if this and the provided box intersect.
Intersects
Returns true if the sphere intersects the bounding box.
Intersects
Returns true if the plane intersects the bounding box.
Intersects
Ray / box intersection, returns a boolean result and nearest distance to intersection.
Intersects
Ray / box intersection, returns boolean result and near and far intersection distance.
GetSize
Size of the box (difference between minimum and maximum corners)
GetExtents
Extents of the box (distance from center to one of the corners)
GetRadius
Radius of a sphere that fully encompasses the box.
GetVolume
Size of the volume in the box.
Contains
Returns true if the provided point is inside the bounding box.
Contains
Returns true if the provided point is inside the bounding box while expanding the bounds by in every direction.
Contains
Returns true if the provided bounding box is completely inside the bounding box.
~TAABox
SetExtents
Sets the minimum and maximum corners.
Scale
Scales the box around the center by multiplying its extents with the provided scale.
GetCorner
Returns the coordinates of a specific corner.
Merge
Merges the two boxes, creating a new bounding box that encapsulates them both.
Merge
Expands the bounding box so it includes the provided point.
Transform
Transforms the bounding box by the given matrix.
TransformAffine
Transforms the bounding box by the given matrix.
Intersects
Returns true if this and the provided box intersect.
Intersects
Returns true if the sphere intersects the bounding box.
Intersects
Returns true if the plane intersects the bounding box.
Intersects
Ray / box intersection, returns a boolean result and nearest distance to intersection.
Intersects
Ray / box intersection, returns boolean result and near and far intersection distance.
GetSize
Size of the box (difference between minimum and maximum corners)
GetExtents
Extents of the box (distance from center to one of the corners)
GetRadius
Radius of a sphere that fully encompasses the box.
GetVolume
Size of the volume in the box.
Contains
Returns true if the provided point is inside the bounding box.
Contains
Returns true if the provided point is inside the bounding box while expanding the bounds by in every direction.
Contains
Returns true if the provided bounding box is completely inside the bounding box.