Jafar
|
This class represents a quaternion. More...
This class represents a quaternion.
It mainly consists of a vector (jblas::vec4 ) for which some simple methods are defined. This class can be extended, if more functionality is needed.
Definition at line 244 of file trv_util.hpp.
#include <trv_util.hpp>
Public Member Functions | |
Quaternion () | |
Standard constructor, sets the quaternion to [1,0,0,0]. | |
Quaternion (jblas::mat33 R) | |
Constructor, which takes a rotation matrix R and translates it into a quaternion, that represents the same rotation. | |
Quaternion (jblas::vec3 axis, double phi) | |
Constructor, which takes an axis and an angle which define a rotation and translates this information into the corresponding quaternion that represents the same rotation. | |
Quaternion (double psi, double theta, double phi) | |
Quaternion (double q0, double q1, double q2, double q3) | |
Private Attributes | |
jblas::vec4 | mq |
Constructor, which takes a rotation matrix R and translates it into a quaternion, that represents the same rotation.
R | rotation matrix, of type jblas::mat33 |
jafar::traversability::Quaternion::Quaternion | ( | jblas::vec3 | axis, |
double | phi | ||
) |
Constructor, which takes an axis and an angle which define a rotation and translates this information into the corresponding quaternion that represents the same rotation.
axis | (unit) vector defining an axis, type jblas::vec3 |
phi | angle in radian |
Generated on Wed Oct 15 2014 00:37:52 for Jafar by doxygen 1.7.6.1 |