
Definition at line 67 of file transformation3.hh.
Public Member Functions | |
| Quaternion () | |
| Quaternion (const Vector3< T > &pose) | |
| Quaternion (const T _w, const T _x, const T _y, const T _z) | |
| Quaternion (const T _roll_x_phi, const T _pitch_y_theta, const T _yaw_z_psi) | |
| Quaternion< T > | conjugated () const |
| Quaternion< T > | normalized () const |
| Quaternion< T > | inverse () const |
| Quaternion (const Vector3< T > &axis, const T &angle) | |
| Quaternion< T > | rotateThisAlong (const Vector3< T > &axis, const T alpha) const |
| Quaternion< T > | rotatePoint (const Quaternion &p) const |
| Vector3< T > | rotatePoint (const Vector3< T > &p) const |
| Quaternion | withRotation (const T alpha) const |
| Vector3< T > | toAngles () const |
| Vector3< T > | axis () const |
| T | angle () const |
| T | norm () const |
| T | re () const |
| Vector3< T > | im () const |
Public Attributes | |
| T | w |
| T | x |
| T | y |
| T | z |
| Quaternion< T >::Quaternion | ( | ) |
Default Constructor: w=x=y=z=0;
| Quaternion< T >::Quaternion | ( | const Vector3< T > & | pose | ) |
The Quaternion representation of the point "pose"
| Quaternion< T >::Quaternion | ( | const T | _w, | |
| const T | _x, | |||
| const T | _y, | |||
| const T | _z | |||
| ) |
create a Quaternion by scalar w and the imaginery parts x,y, and z.
| Quaternion< T >::Quaternion | ( | const T | _roll_x_phi, | |
| const T | _pitch_y_theta, | |||
| const T | _yaw_z_psi | |||
| ) |
create a rotational Quaternion, roll along x-axis, pitch along y-axis and yaw along z-axis
| Quaternion<T> Quaternion< T >::conjugated | ( | ) | const [inline] |
| Quaternion<T> Quaternion< T >::normalized | ( | ) | const [inline] |
| Quaternion<T> Quaternion< T >::inverse | ( | ) | const [inline] |
| Quaternion<T> Quaternion< T >::rotateThisAlong | ( | const Vector3< T > & | axis, | |
| const T | alpha | |||
| ) | const [inline] |
if this Quaternion represents a point, use this function to rotate the point along <axis> with angle <alpha>
| axis | the rotational axis | |
| alpha | rotational angle |
| Quaternion<T> Quaternion< T >::rotatePoint | ( | const Quaternion< T > & | p | ) | const [inline] |
if this Quaternion represents a rotational axis + rotation, use this function to rotate another point represented as a Quaternion p
| p | the point to be rotated by <this>. Point is represented as a Quaternion |
| Vector3<T> Quaternion< T >::rotatePoint | ( | const Vector3< T > & | p | ) | const [inline] |
if this Quaternion represents a rotational axis + rotation, use this function to rotate another point
| p | the point to be rotated by <this>. |
| Quaternion Quaternion< T >::withRotation | ( | const T | alpha | ) | const [inline] |
if this Quaternion represents a rotational axis, add a rotation of angle <alpha> along <this> axis to the Quaternion
| alpha | rotational value |
| Vector3<T> Quaternion< T >::toAngles | ( | ) | const [inline] |
Given rotational axis x,y,z, get the rotation along these axis encoded in this Quaternion
| T Quaternion< T >::norm | ( | ) | const [inline] |
| T Quaternion< T >::re | ( | ) | const [inline] |
| Vector3<T> Quaternion< T >::im | ( | ) | const [inline] |
1.5.0