43 #include <visp/vpQuaternionVector.h>
44 #include <visp/vpMath.h>
51 const double vpQuaternionVector::minimum = 0.0001;
60 const double z_,
const double w_)
85 const double z_,
const double w_)
132 w() * rq.
y() +
y() * rq.
w() +
z() * rq.
x() -
x() * rq.
z(),
133 w() * rq.
z() +
z() * rq.
w() +
x() * rq.
y() -
y() * rq.
x(),
134 w() * rq.
w() -
x() * rq.
x() -
y() * rq.
y() -
z() * rq.
z());
151 double sinTheta_2 = sin(theta);
152 set( u[0] * sinTheta_2, u[1] * sinTheta_2, u[2] * sinTheta_2, cos(theta) );
Class that consider the case of a generic rotation vector (cannot be used as is !) consisting in thre...
void set(const double x, const double y, const double z, const double w)
vpQuaternionVector operator-()
Negate operator. Returns a quaternion defined by (-x,-y,-z-,-w).
vpQuaternionVector operator*(const double l)
Multiplication by scalar. Returns a quaternion defined by (lx,ly,lz,lw).
double y() const
Returns y-component of the quaternion.
The vpRotationMatrix considers the particular case of a rotation matrix.
double w() const
Returns w-component of the quaternion.
void extract(double &theta, vpColVector &u) const
double z() const
Returns z-component of the quaternion.
double x() const
Returns x-component of the quaternion.
Defines a quaternion and its basic operations.
void buildFrom(const vpRotationMatrix &R)
Class that provides a data structure for the column vectors as well as a set of operations on these v...
vpQuaternionVector operator+(vpQuaternionVector &q)
Class that consider the case of the parameterization for the rotation.