Designed to contain orientation (quaternion) data of the positional tracking. More...
Functions | |
Orientation () | |
empty Orientation default constructor. More... | |
Orientation (const Orientation &orientation) | |
Orientation copy constructor (deep copy). More... | |
Orientation (const float4 &in) | |
Orientation copy constructor (deep copy). More... | |
Orientation (const Rotation &rotation) | |
Orientation constructor from an Rotation. More... | |
Orientation (const Translation &tr1, const Translation &tr2) | |
Orientation constructor from a vector represented by two Translation. More... | |
float | operator() (int x) |
Returns the value at specific position in the Orientation. More... | |
Orientation | operator* (const Orientation &orientation) const |
Multiplication operator by an Orientation. More... | |
void | setRotationMatrix (const Rotation &rotation) |
Sets the orientation from a Rotation. More... | |
Rotation | getRotationMatrix () const |
Returns the current orientation as a Rotation. More... | |
void | setIdentity () |
Sets the current Orientation to identity. More... | |
void | setZeros () |
Fills the current Orientation with zeros. More... | |
void | normalise () |
Normalizes the current Orientation. More... | |
_FCT_CPU_GPU_ int | size () const |
_FCT_CPU_GPU_ const float * | ptr () const |
_FCT_CPU_GPU_ Vector4< float > & | setValues (const float *b) |
_FCT_CPU_GPU_ float & | operator[] (int i) |
_FCT_CPU_GPU_ const float & | operator[] (int i) const |
_FCT_CPU_GPU_ float | norm () |
returns the norm of the vector More... | |
_FCT_CPU_GPU_ float | square () |
returns the squared norm of the vector More... | |
_FCT_CPU_GPU_ float | sum () |
returns the sum of the vector More... | |
Static Functions | |
static Orientation | identity () |
Creates an Orientation initialized to identity. More... | |
static Orientation | zeros () |
Creates an Orientation filled with zeros. More... | |
static Orientation | normalise (const Orientation &orient) |
Creates the normalized version of an existing Orientation. More... | |
static _FCT_CPU_GPU_ float | dot (const Vector4< float > &a, const Vector4< float > &b) |
returns the dot product of two vector More... | |
static _FCT_CPU_GPU_ float | distance (const Vector4< float > &a, const Vector4< float > &b) |
returns the distance between two vector More... | |
Designed to contain orientation (quaternion) data of the positional tracking.
Orientation is a vector defined as [ox, oy, oz, ow].
Orientation | ( | ) |
empty Orientation default constructor.
Orientation | ( | const Orientation & | orientation | ) |
Orientation copy constructor (deep copy).
orientation | : the Orientation to copy. |
Orientation | ( | const float4 & | in | ) |
Orientation copy constructor (deep copy).
in | : the vector to copy. |
Set in the following order : [ox, oy, oz, ow].
Orientation | ( | const Rotation & | rotation | ) |
Orientation constructor from an Rotation.
It converts the Rotation representation to the Orientation one.
rotation | : the Rotation to be used. |
Orientation | ( | const Translation & | tr1, |
const Translation & | tr2 | ||
) |
Orientation constructor from a vector represented by two Translation.
tr1 | : the first point of the vector. |
tr2 | : the second point of the vector. |
float operator() | ( | int | x | ) |
Returns the value at specific position in the Orientation.
x | : the position of the value |
Orientation operator* | ( | const Orientation & | orientation | ) | const |
Multiplication operator by an Orientation.
orientation | : the orientation. |
void setRotationMatrix | ( | const Rotation & | rotation | ) |
Rotation getRotationMatrix | ( | ) | const |
Returns the current orientation as a Rotation.
void setIdentity | ( | ) |
Sets the current Orientation to identity.
|
static |
Creates an Orientation initialized to identity.
void setZeros | ( | ) |
Fills the current Orientation with zeros.
|
static |
Creates an Orientation filled with zeros.
void normalise | ( | ) |
Normalizes the current Orientation.
|
static |
Creates the normalized version of an existing Orientation.
orient | : the Orientation to be used. |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
returns the norm of the vector
|
inlineinherited |
returns the squared norm of the vector
|
inlineinherited |
returns the sum of the vector
|
inlinestaticinherited |
returns the dot product of two vector