Jafar
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Private Attributes
jafar::traversability::Quaternion Class Reference

This class represents a quaternion. More...


Detailed Description

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>

List of all members.

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 & Destructor Documentation

Constructor, which takes a rotation matrix R and translates it into a quaternion, that represents the same rotation.

Parameters:
Rrotation matrix, of type jblas::mat33

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.

Parameters:
axis(unit) vector defining an axis, type jblas::vec3
phiangle in radian

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on Wed Oct 15 2014 00:37:52 for Jafar by doxygen 1.7.6.1
LAAS-CNRS