|
| XII_DECLARE_POD_TYPE () |
|
| xiiSimdBSphered () |
| Default constructor does not initialize any data.
|
|
| xiiSimdBSphered (const xiiSimdVec4d &vCenter, const xiiSimdDouble &fRadius) |
| Creates a sphere with the given radius around the given center.
|
|
bool | IsValid () const |
| Returns whether the sphere has valid values.
|
|
bool | IsNaN () const |
| Returns whether any value is NaN.
|
|
xiiSimdVec4d | GetCenter () const |
| Returns the center.
|
|
xiiSimdDouble | GetRadius () const |
| Returns the radius.
|
|
void | ExpandToInclude (const xiiSimdVec4d &vPoint) |
| Increases the sphere's radius to include this point.
|
|
void | ExpandToInclude (const xiiSimdVec4d *pPoints, xiiUInt32 uiNumPoints, xiiUInt32 uiStride=sizeof(xiiSimdVec4d)) |
| Increases the sphere's radius to include all given points. Does NOT change its position, thus the resulting sphere might be not a very tight fit. More efficient than calling this for every point individually.
|
|
void | ExpandToInclude (const xiiSimdBSphered &rhs) |
| Increases this sphere's radius, such that it encloses the other sphere.
|
|
void | Transform (const xiiSimdTransformd &t) |
| Transforms the sphere in its local space.
|
|
void | Transform (const xiiSimdMat4d &mMat) |
| Transforms the sphere in its local space.
|
|
xiiSimdDouble | GetDistanceTo (const xiiSimdVec4d &vPoint) const |
| Computes the distance of the point to the sphere's surface. Returns negative values for points inside the sphere.
|
|
xiiSimdDouble | GetDistanceTo (const xiiSimdBSphered &rhs) const |
| Returns the distance between the two spheres. Zero for spheres that are exactly touching each other, negative values for overlapping spheres.
|
|
bool | Contains (const xiiSimdVec4d &vPoint) const |
| Returns true if the given point is inside the sphere.
|
|
bool | Contains (const xiiSimdBSphered &rhs) const |
| Returns whether the other sphere is completely inside this sphere.
|
|
bool | Overlaps (const xiiSimdBSphered &rhs) const |
| Checks whether the two objects overlap.
|
|
xiiSimdVec4d | GetClampedPoint (const xiiSimdVec4d &vPoint) |
| Clamps the given position to the volume of the sphere. The resulting point will always be inside the sphere, but have the closest distance to the original point.
|
|
bool | operator== (const xiiSimdBSphered &rhs) const |
|
bool | operator!= (const xiiSimdBSphered &rhs) const |
|