Image Component Library (ICL)
|
quaternion describing the orientation of the primitive More...
#include <Primitive3DFilter.h>
Public Member Functions | |
Quaternion (const math::Vec3 &v, const float w, bool givenInAxisAngle=false) | |
Constructor. More... | |
const Quaternion | operator * (const Quaternion &q) |
Hamilton product. More... | |
Quaternion | conj () const |
complex conjugate More... | |
math::Mat4 | getTransformationMatrix () |
convert to transformation matrix More... | |
math::Vec3 | rotateVector (const math::Vec3 &vIn) |
rotate a given vector according to the quaternion More... | |
Public Attributes | |
math::Vec3 | v |
vector part More... | |
float | w |
scalar part More... | |
quaternion describing the orientation of the primitive
|
inline |
Constructor.
v | vector part of the Quaternion |
w | scalar part of the quaternion |
givenInAxisAngle | if v and w are given in axis angle representation (flag is true), they are converted to a unit quaternion |
|
inline |
complex conjugate
|
inline |
convert to transformation matrix
|
inline |
Hamilton product.
|
inline |
rotate a given vector according to the quaternion
Assumes a unit quaternion.
vIn | input vector |
math::Vec3 icl::geom::Primitive3DFilter::Quaternion::v |
vector part
float icl::geom::Primitive3DFilter::Quaternion::w |
scalar part