#include <mitkQuaternion.h>
Public Member Functions | |
mitkQuaternion () | |
mitkQuaternion (const float x, const float y, const float z, const float w) | |
mitkQuaternion (const float x, const float y, const float z) | |
mitkQuaternion & | operator= (const mitkQuaternion &q) |
mitkQuaternion (const mitkQuaternion &q) | |
void | Identity (void) |
void | Normalize (void) |
void | GetValues (float &x, float &y, float &z, float &w) const |
void | AxisRadToQuat (const float ax, const float ay, const float az, const float angle) |
void | AxisDegToQuat (const float ax, const float ay, const float az, const float angle) |
void | GetAxisRad (float &ax, float &ay, float &az, float &angle) const |
void | GetAxisDeg (float &ax, float &ay, float &az, float &angle) const |
void | EulerRadToQuat (const float xr, const float yr, const float zr) |
void | EulerDegToQuat (const float xd, const float yd, const float zd) |
void | GetEulerRad (float &xr, float &yr, float &zr) const |
void | GetEulerDeg (float &xd, float &yd, float &zd) const |
void | BuildMatrix (mitkMatrix &mat) const |
Friends | |
mitkQuaternion | operator * (const mitkQuaternion &p, const mitkQuaternion &q) |
mitkQuaternion is used to implement 3d rotation
|
Default constructor. Construct a quaternion with zero rotation. |
|
Construct a quaternion from given values. Quat will be normalized. Will perform a valid check. |
|
Construct a quaternion from euler angles in degrees.
|
|
Copy constructor. |
|
Convert an axis angle to quaternion, angle is in degrees.
|
|
Convert an axis angle to quaternion, angle is in radians.
|
|
Get the 4x4 rotation matrix representation of this quaternion.
|
|
Convert euler angles to quaternion, euler angles are in degrees.
|
|
Convert euler angles to quaternion, euler angles are in radians.
|
|
Get an axis angle from this quaternion, angle is returned in degrees.
|
|
Get an axis angle from this quaternion, angle is returned in radians.
|
|
Get euler angles from this quaternion, angle is returned in degrees.
|
|
Get euler angles from this quaternion, angle is returned in radians.
|
|
Get the values of this quaternion. |
|
Set this quaternion to the identity quaternion. |
|
Normalize this quaternion. |
|
"=" operator. |
|
Multiplication |