#include <Quat.h>
Collaboration diagram for gmtl::Quat:
Public Types | |
typedef DATA_TYPE | DataType |
use this to declare single value types of the same type as this matrix. More... | |
enum | Params { Size = 4 } |
Public Methods | |
Quat () | |
default constructor, initializes to quaternion multiplication identity [x,y,z,w] == [0,0,0,1]. More... | |
Quat (const DATA_TYPE x, const DATA_TYPE y, const DATA_TYPE z, const DATA_TYPE w) | |
data constructor, initializes to quaternion multiplication identity [x,y,z,w] == [0,0,0,1]. More... | |
Quat (const Quat< DATA_TYPE > &q) | |
copy constructor. More... | |
void | set (const DATA_TYPE x, const DATA_TYPE y, const DATA_TYPE z, const DATA_TYPE w) |
directly set the quaternion's values. More... | |
void | get (DATA_TYPE &x, DATA_TYPE &y, DATA_TYPE &z, DATA_TYPE &w) |
get the raw data elements of the quaternion. More... | |
DATA_TYPE & | operator[] (const int x) |
bracket operator. More... | |
const DATA_TYPE & | operator[] (const int x) const |
bracket operator(const version). More... | |
const DATA_TYPE * | getData () const |
Get a DATA_TYPE pointer to the quat internal data. More... | |
Public Attributes | |
Vec< DATA_TYPE, 4 > | mData |
this Quaternion is ordered in memory: x,y,z,w.
References:
Definition at line 76 of file Quat.h.
|
use this to declare single value types of the same type as this matrix.
|
|
Definition at line 83 of file Quat.h.
00083 { Size = 4 }; |
|
default constructor, initializes to quaternion multiplication identity [x,y,z,w] == [0,0,0,1]. NOTE: the addition identity is [0,0,0,0] |
|
data constructor, initializes to quaternion multiplication identity [x,y,z,w] == [0,0,0,1]. NOTE: the addition identity is [0,0,0,0] |
|
copy constructor.
|
|
get the raw data elements of the quaternion.
Definition at line 122 of file Quat.h. References mData, gmtl::Welt, gmtl::Xelt, gmtl::Yelt, and gmtl::Zelt.
|
|
Get a DATA_TYPE pointer to the quat internal data.
Definition at line 170 of file Quat.h. References mData.
00170 { return (DATA_TYPE*)mData.getData();} |
|
bracket operator(const version). raw data accessor.
"Example (access raw data element in a Quat):"
Definition at line 161 of file Quat.h. References gmtlASSERT, and mData.
00162 { 00163 gmtlASSERT( x >= 0 && x < 4 && "out of bounds error" ); 00164 return mData[x]; 00165 } |
|
bracket operator. raw data accessor.
"Example (access raw data element in a Quat):"
Definition at line 144 of file Quat.h. References gmtlASSERT, and mData.
00145 { 00146 gmtlASSERT( x >= 0 && x < 4 && "out of bounds error" ); 00147 return mData[x]; 00148 } |
|
directly set the quaternion's values.
Definition at line 114 of file Quat.h. References mData.
00115 { 00116 mData.set( x, y, z, w ); 00117 } |
|
Definition at line 174 of file Quat.h. Referenced by get, getData, operator[], and set. |