|
| XII_DECLARE_POD_TYPE () |
|
| xiiSimdBBox () |
| Default constructor does not initialize anything.
|
|
| xiiSimdBBox (const xiiSimdVec4f &vMin, const xiiSimdVec4f &vMax) |
| Constructs the box with the given minimum and maximum values.
|
|
bool | IsValid () const |
| Checks whether the box is in an invalid state.
|
|
bool | IsNaN () const |
| Checks whether any component is NaN.
|
|
xiiSimdVec4f | GetCenter () const |
| Returns the center position of the box.
|
|
xiiSimdVec4f | GetExtents () const |
| Returns the extents of the box along each axis.
|
|
xiiSimdVec4f | GetHalfExtents () const |
| Returns the half extents of the box along each axis.
|
|
void | ExpandToInclude (const xiiSimdVec4f &vPoint) |
| Expands the box such that the given point is inside it.
|
|
void | ExpandToInclude (const xiiSimdVec4f *pPoints, xiiUInt32 uiNumPoints, xiiUInt32 uiStride=sizeof(xiiSimdVec4f)) |
| Expands the box such that all the given points are inside it.
|
|
void | ExpandToInclude (const xiiSimdBBox &rhs) |
| Expands the box such that the given box is inside it.
|
|
void | ExpandToCube () |
| If the box is not cubic all extents are set to the value of the maximum extent, such that the box becomes cubic.
|
|
bool | Contains (const xiiSimdVec4f &vPoint) const |
| Checks whether the given point is inside the box.
|
|
bool | Contains (const xiiSimdBBox &rhs) const |
| Checks whether the given box is completely inside this box.
|
|
bool | Contains (const xiiSimdBSphere &sphere) const |
| Checks whether the given sphere is completely inside this box.
|
|
bool | Overlaps (const xiiSimdBBox &rhs) const |
| Checks whether this box overlaps with the given box.
|
|
bool | Overlaps (const xiiSimdBSphere &sphere) const |
| Checks whether the given sphere overlaps with this box.
|
|
void | Grow (const xiiSimdVec4f &vDiff) |
| Will increase the size of the box in all directions by the given amount (per axis).
|
|
void | Translate (const xiiSimdVec4f &vDiff) |
| Moves the box by the given vector.
|
|
void | Transform (const xiiSimdTransform &transform) |
| Transforms the corners of the box and recomputes the aabb of those transformed points.
|
|
void | Transform (const xiiSimdMat4f &mMat) |
| Transforms the corners of the box and recomputes the aabb of those transformed points.
|
|
xiiSimdVec4f | GetClampedPoint (const xiiSimdVec4f &vPoint) const |
| The given point is clamped to the volume of the box, i.e. it will be either inside the box or on its surface and it will have the closest possible distance to the original point.
|
|
xiiSimdFloat | GetDistanceSquaredTo (const xiiSimdVec4f &vPoint) const |
| Returns the squared minimum distance from the box's surface to the point. Zero if the point is inside the box.
|
|
xiiSimdFloat | GetDistanceTo (const xiiSimdVec4f &vPoint) const |
| Returns the minimum distance from the box's surface to the point. Zero if the point is inside the box.
|
|
bool | operator== (const xiiSimdBBox &rhs) const |
|
bool | operator!= (const xiiSimdBBox &rhs) const |
|
|
static xiiSimdBBox | MakeZero () |
| Creates a box that is located at the origin and has zero size. This is a 'valid' box.
|
|
static xiiSimdBBox | MakeInvalid () |
| Creates a box that is in an invalid state. ExpandToInclude can then be used to make it into a bounding box for objects.
|
|
static xiiSimdBBox | MakeFromCenterAndHalfExtents (const xiiSimdVec4f &vCenter, const xiiSimdVec4f &vHalfExtents) |
| Creates a box from a center point and half-extents for each axis.
|
|
static xiiSimdBBox | MakeFromMinMax (const xiiSimdVec4f &vMin, const xiiSimdVec4f &vMax) |
| Creates a box with the given minimum and maximum values.
|
|
static xiiSimdBBox | MakeFromPoints (const xiiSimdVec4f *pPoints, xiiUInt32 uiNumPoints, xiiUInt32 uiStride=sizeof(xiiSimdVec4f)) |
| Creates a box around the given set of points. If uiNumPoints is zero, the returned box is invalid (same as MakeInvalid() returns).
|
|