OEQuaternion

class OEQuaternion : public OETransBase

This class represents OEQuaternion.

The OEQuaternion class performs quaternion rotation transformation.

The following methods are publicly inherited from OETransBase:

CreateCopy

GetInverse

Extract

Transform

Constructors

OEQuaternion()
OEQuaternion(const float *quat)
OEQuaternion(const double *quat)
OEQuaternion(const float *vec, float angle)
OEQuaternion(const double *vec, double angle)
OEQuaternion(const double w, const double x, const double y, const double z)
OEQuaternion(const float w, const float x, const float y, const float z)

Default and copy constructors.

operator=

OEQuaternion &operator=(const float *quat)
OEQuaternion &operator=(const double *quat)

CreateCopy

OETransBase *CreateCopy() const

Deep copy constructor that returns a copy of the object. The memory for the returned OEQuaternion object is dynamically allocated and owned by the caller.

Extract

void Extract(float *r, float *t) const
void Extract(float *r, double *t) const
void Extract(double *r, float *t) const
void Extract(double *r, double *t) const

GetInverse

OETransBase *GetInverse() const

GetQuaternion

void GetQuaternion(float *quat) const
void GetQuaternion(double *quat) const