#include <transformation3.h>
Public Member Functions | |
T | angle () const |
Vector3< T > | axis () const |
Quaternion< T > | conjugated () const |
Vector3< T > | im () const |
Quaternion< T > | inverse () const |
T | norm () const |
Quaternion< T > | normalized () const |
Quaternion () | |
Quaternion (const T _roll_x_phi, const T _pitch_y_theta, const T _yaw_z_psi) | |
Quaternion (const T _w, const T _x, const T _y, const T _z) | |
Quaternion (const Vector3< T > &axis, const T &angle) | |
Quaternion (const Vector3< T > &pose) | |
T | re () const |
Quaternion< T > | rotatePoint (const Quaternion &p) const |
Vector3< T > | rotatePoint (const Vector3< T > &p) const |
Quaternion< T > | rotateThisAlong (const Vector3< T > &axis, const T alpha) const |
Vector3< T > | toAngles () const |
Quaternion | withRotation (const T alpha) const |
Public Attributes | |
T | w |
T | x |
T | y |
T | z |
A Quaternion can be used to either represent a rotational axis and a Rotation, or, the point which will be rotated
Definition at line 140 of file transformation3.h.
AISNavigation::Quaternion< T >::Quaternion | ( | ) |
Default Constructor: w=x=y=z=0;
AISNavigation::Quaternion< T >::Quaternion | ( | const Vector3< T > & | pose | ) |
The Quaternion representation of the point "pose"
AISNavigation::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.
AISNavigation::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
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
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 |
|
inline |
if this Quaternion represents a rotational axis + rotation, use this function to rotate another point
p | the point to be rotated by <this>. |
|
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 |
|
inline |
Given rotational axis x,y,z, get the rotation along these axis encoded in this Quaternion
|
inline |
if this Quaternion represents a rotational axis, add a rotation of angle <alpha> along <this> axis to the Quaternion
alpha | rotational value |
T AISNavigation::Quaternion< T >::w |
Definition at line 238 of file transformation3.h.
T AISNavigation::Quaternion< T >::x |
Definition at line 238 of file transformation3.h.
T AISNavigation::Quaternion< T >::y |
Definition at line 238 of file transformation3.h.
T AISNavigation::Quaternion< T >::z |
Definition at line 238 of file transformation3.h.