XII Release 0.1.0
Loading...
Searching...
No Matches
xiiSimdBBoxSphered Class Reference

Public Member Functions

 XII_DECLARE_POD_TYPE ()
 
 xiiSimdBBoxSphered ()
 Default constructor does not initialize anything.
 
 xiiSimdBBoxSphered (const xiiSimdBBoxd &box)
 Constructs the bounds from the given box. The sphere radius is calculated from the box extends.
 
 xiiSimdBBoxSphered (const xiiSimdBSphered &sphere)
 Constructs the bounds from the given sphere. The box extends are calculated from the sphere radius.
 
bool IsValid () const
 Checks whether the bounds is in an invalid state.
 
bool IsNaN () const
 Checks whether any component is NaN.
 
xiiSimdBBoxd GetBox () const
 Returns the bounding box.
 
xiiSimdBSphered GetSphere () const
 Returns the bounding sphere.
 
void ExpandToInclude (const xiiSimdBBoxSphered &rhs)
 Expands the bounds such that the given bounds are inside it.
 
void Transform (const xiiSimdTransformd &t)
 Transforms the bounds in its local space.
 
void Transform (const xiiSimdMat4d &mMat)
 Transforms the bounds in its local space.
 
bool operator== (const xiiSimdBBoxSphered &rhs) const
 
bool operator!= (const xiiSimdBBoxSphered &rhs) const
 

Static Public Member Functions

static xiiSimdBBoxSphered MakeZero ()
 Creates an object with all zero values. These are valid bounds around the origin with no volume.
 
static xiiSimdBBoxSphered MakeInvalid ()
 Creates an 'invalid' object, ie one with negative extents/radius. Invalid objects can be made valid through ExpandToInclude().
 
static xiiSimdBBoxSphered MakeFromCenterExtents (const xiiSimdVec4d &vCenter, const xiiSimdVec4d &vBoxHalfExtents, const xiiSimdDouble &fSphereRadius)
 Creates an object from the given center point and extents.
 
static xiiSimdBBoxSphered MakeFromPoints (const xiiSimdVec4d *pPoints, xiiUInt32 uiNumPoints, xiiUInt32 uiStride=sizeof(xiiSimdVec4d))
 Creates an object that contains all the provided points.
 
static xiiSimdBBoxSphered MakeFromBox (const xiiSimdBBoxd &box)
 Creates an object from another bounding box.
 
static xiiSimdBBoxSphered MakeFromSphere (const xiiSimdBSphered &sphere)
 Creates an object from another bounding sphere.
 
static xiiSimdBBoxSphered MakeFromBoxAndSphere (const xiiSimdBBoxd &box, const xiiSimdBSphered &sphere)
 Creates an object from another bounding box and a sphere.
 

Public Attributes

xiiSimdVec4d m_CenterAndRadius
 
xiiSimdVec4d m_BoxHalfExtents
 

The documentation for this class was generated from the following files: