Image Component Library (ICL)
Public Member Functions | Public Attributes | List of all members
icl::geom::Primitive3DFilter::Quaternion Struct Reference

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...
 

Detailed Description

quaternion describing the orientation of the primitive

Constructor & Destructor Documentation

◆ Quaternion()

icl::geom::Primitive3DFilter::Quaternion::Quaternion ( const math::Vec3 v,
const float  w,
bool  givenInAxisAngle = false 
)
inline

Constructor.

Parameters
vvector part of the Quaternion
wscalar part of the quaternion
givenInAxisAngleif v and w are given in axis angle representation (flag is true), they are converted to a unit quaternion

Member Function Documentation

◆ conj()

Quaternion icl::geom::Primitive3DFilter::Quaternion::conj ( ) const
inline

complex conjugate

◆ getTransformationMatrix()

math::Mat4 icl::geom::Primitive3DFilter::Quaternion::getTransformationMatrix ( )
inline

convert to transformation matrix

◆ operator *()

const Quaternion icl::geom::Primitive3DFilter::Quaternion::operator * ( const Quaternion q)
inline

Hamilton product.

◆ rotateVector()

math::Vec3 icl::geom::Primitive3DFilter::Quaternion::rotateVector ( const math::Vec3 vIn)
inline

rotate a given vector according to the quaternion

Assumes a unit quaternion.

Parameters
vIninput vector
Returns
rotated vector

Member Data Documentation

◆ v

math::Vec3 icl::geom::Primitive3DFilter::Quaternion::v

vector part

◆ w

float icl::geom::Primitive3DFilter::Quaternion::w

scalar part


The documentation for this struct was generated from the following file: