|
| EZ_DECLARE_POD_TYPE () |
|
| ezSimdBSphere () |
| Default constructor does not initialize any data.
|
|
| ezSimdBSphere (const ezSimdVec4f &vCenter, const ezSimdFloat &fRadius) |
| Creates a sphere with the given radius around the given center.
|
|
void | SetInvalid () |
| Sets the bounding sphere to invalid values.
|
|
bool | IsValid () const |
| Returns whether the sphere has valid values.
|
|
bool | IsNaN () const |
| Returns whether any value is NaN.
|
|
ezSimdVec4f | GetCenter () const |
| Returns the center.
|
|
ezSimdFloat | GetRadius () const |
| Returns the radius.
|
|
void | SetFromPoints (const ezSimdVec4f *pPoints, ezUInt32 uiNumPoints, ezUInt32 uiStride=sizeof(ezSimdVec4f)) |
| Initializes the sphere to be the bounding sphere of all the given points.
|
|
void | ExpandToInclude (const ezSimdVec4f &vPoint) |
| Increases the sphere's radius to include this point.
|
|
void | ExpandToInclude (const ezSimdVec4f *pPoints, ezUInt32 uiNumPoints, ezUInt32 uiStride=sizeof(ezSimdVec4f)) |
| 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 ezSimdBSphere &rhs) |
| Increases this sphere's radius, such that it encloses the other sphere.
|
|
void | Transform (const ezSimdTransform &t) |
| Transforms the sphere in its local space.
|
|
void | Transform (const ezSimdMat4f &mMat) |
| Transforms the sphere in its local space.
|
|
ezSimdFloat | GetDistanceTo (const ezSimdVec4f &vPoint) const |
| Computes the distance of the point to the sphere's surface. Returns negative values for points inside the sphere.
|
|
ezSimdFloat | GetDistanceTo (const ezSimdBSphere &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 ezSimdVec4f &vPoint) const |
| Returns true if the given point is inside the sphere.
|
|
bool | Contains (const ezSimdBSphere &rhs) const |
| Returns whether the other sphere is completely inside this sphere.
|
|
bool | Overlaps (const ezSimdBSphere &rhs) const |
| Checks whether the two objects overlap.
|
|
ezSimdVec4f | GetClampedPoint (const ezSimdVec4f &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 ezSimdBSphere &rhs) const |
|
bool | operator!= (const ezSimdBSphere &rhs) const |
|