|
| XII_DECLARE_POD_TYPE () |
|
| xiiSimdBBoxd () |
| Default constructor does not initialize anything.
|
|
| xiiSimdBBoxd (const xiiSimdVec4d &vMin, const xiiSimdVec4d &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.
|
|
xiiSimdVec4d | GetCenter () const |
| Returns the center position of the box.
|
|
xiiSimdVec4d | GetExtents () const |
| Returns the extents of the box along each axis.
|
|
xiiSimdVec4d | GetHalfExtents () const |
| Returns the half extents of the box along each axis.
|
|
void | ExpandToInclude (const xiiSimdVec4d &vPoint) |
| Expands the box such that the given point is inside it.
|
|
void | ExpandToInclude (const xiiSimdVec4d *pPoints, xiiUInt32 uiNumPoints, xiiUInt32 uiStride=sizeof(xiiSimdVec4d)) |
| Expands the box such that all the given points are inside it.
|
|
void | ExpandToInclude (const xiiSimdBBoxd &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 xiiSimdVec4d &vPoint) const |
| Checks whether the given point is inside the box.
|
|
bool | Contains (const xiiSimdBBoxd &rhs) const |
| Checks whether the given box is completely inside this box.
|
|
bool | Contains (const xiiSimdBSphered &sphere) const |
| Checks whether the given sphere is completely inside this box.
|
|
bool | Overlaps (const xiiSimdBBoxd &rhs) const |
| Checks whether this box overlaps with the given box.
|
|
bool | Overlaps (const xiiSimdBSphered &sphere) const |
| Checks whether the given sphere overlaps with this box.
|
|
void | Grow (const xiiSimdVec4d &vDiff) |
| Will increase the size of the box in all directions by the given amount (per axis).
|
|
void | Translate (const xiiSimdVec4d &vDiff) |
| Moves the box by the given vector.
|
|
void | Transform (const xiiSimdTransformd &transform) |
| Transforms the corners of the box and recomputes the aabb of those transformed points.
|
|
void | Transform (const xiiSimdMat4d &mMat) |
| Transforms the corners of the box and recomputes the aabb of those transformed points.
|
|
xiiSimdVec4d | GetClampedPoint (const xiiSimdVec4d &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.
|
|
xiiSimdDouble | GetDistanceSquaredTo (const xiiSimdVec4d &vPoint) const |
| Returns the squared minimum distance from the box's surface to the point. Zero if the point is inside the box.
|
|
xiiSimdDouble | GetDistanceTo (const xiiSimdVec4d &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 xiiSimdBBoxd &rhs) const |
|
bool | operator!= (const xiiSimdBBoxd &rhs) const |
|
|
static xiiSimdBBoxd | MakeZero () |
| Creates a box that is located at the origin and has zero size. This is a 'valid' box.
|
|
static xiiSimdBBoxd | 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 xiiSimdBBoxd | MakeFromCenterAndHalfExtents (const xiiSimdVec4d &vCenter, const xiiSimdVec4d &vHalfExtents) |
| Creates a box from a center point and half-extents for each axis.
|
|
static xiiSimdBBoxd | MakeFromMinMax (const xiiSimdVec4d &vMin, const xiiSimdVec4d &vMax) |
| Creates a box with the given minimum and maximum values.
|
|
static xiiSimdBBoxd | MakeFromPoints (const xiiSimdVec4d *pPoints, xiiUInt32 uiNumPoints, xiiUInt32 uiStride=sizeof(xiiSimdVec4d)) |
| Creates a box around the given set of points. If uiNumPoints is zero, the returned box is invalid (same as MakeInvalid() returns).
|
|