The blo Library
Loading...
Searching...
No Matches
Classes | Namespaces | Functions
Quaternion3D.h File Reference

Quaternion3D declaration and related functions. More...

#include "defs.h"
#include "HomgArray1DFixed.h"
#include "Point.h"
#include "SmallMatrix.h"
#include "Quaternion3D.inl"

Classes

class  blo::Quaternion3D< T >
 Quaternion representation of 3D rotation. More...
 

Namespaces

namespace  blo
 The blo library.
 

Functions

template<typename T >
const Quaternion3D< T > blo::conj (const Quaternion3D< T > &q)
 Computes the complex conjugate of a quaternion representation (inverts rotation).
 
template<typename T >
void blo::conj (const Quaternion3D< T > &q, Quaternion3D< T > &q_conj, SmallMatrix< T, 4, 4 > &J)
 Computes the complex conjugate of a quaternion representation (inverts rotation).
 
BLO_EXPIMP_TEMPLATE template BLO_API void blo::conj (const Quaternion3D< double > &q, Quaternion3D< double > &q_conj, SmallMatrix< double, 4, 4 > &J)
 
BLO_EXPIMP_TEMPLATE template BLO_API void blo::conj (const Quaternion3D< float > &q, Quaternion3D< float > &q_conj, SmallMatrix< float, 4, 4 > &J)
 
template<typename T >
const Quaternion3D< T > blo::operator+ (const Quaternion3D< T > &q1, const Quaternion3D< T > &q2)
 Calculates the addition of two quaternion representations.
 
template<typename T >
const Quaternion3D< T > blo::operator* (const Quaternion3D< T > &q1, const Quaternion3D< T > &q2)
 Calculates the Hamilton product of two quaternion representations (composes rotations).
 
template<typename T >
void blo::hamilton (const Quaternion3D< T > &q1, const Quaternion3D< T > &q2, Quaternion3D< T > &q, SmallMatrix< T, 4, 4 > &Jq1, SmallMatrix< T, 4, 4 > &Jq2)
 Calculates the Hamilton product of two quaternion representations (composes rotations).
 
BLO_EXPIMP_TEMPLATE template BLO_API void blo::hamilton (const Quaternion3D< double > &q1, const Quaternion3D< double > &q2, Quaternion3D< double > &q, SmallMatrix< double, 4, 4 > &Jq1, SmallMatrix< double, 4, 4 > &Jq2)
 
BLO_EXPIMP_TEMPLATE template BLO_API void blo::hamilton (const Quaternion3D< float > &q1, const Quaternion3D< float > &q2, Quaternion3D< float > &q, SmallMatrix< float, 4, 4 > &Jq1, SmallMatrix< float, 4, 4 > &Jq2)
 
template<typename T >
const Quaternion3D< T > blo::operator* (const T &s, const Quaternion3D< T > &q)
 Calculates the (Hamilton) product of a scalar and a quaternion representation.
 
template<typename T >
const Quaternion3D< T > blo::operator* (const Quaternion3D< T > &q, const T &s)
 Calculates the (Hamilton) product of a quaternion and a scalar representation.
 
template<typename T >
const SmallMatrix< T, 3, 1 > blo::rotateVector (const SmallMatrix< T, 3, 1 > &src, const Quaternion3D< T > &q)
 Rotates a vector.
 
template<typename T >
void blo::rotateVector (const SmallMatrix< T, 3, 1 > &x, const Quaternion3D< T > &q, SmallMatrix< T, 3, 1 > &y, SmallMatrix< T, 3, 3 > &Jx, SmallMatrix< T, 3, 4 > &Jq)
 Rotates a vector.
 
BLO_EXPIMP_TEMPLATE template BLO_API void blo::rotateVector (const SmallMatrix< double, 3, 1 > &x, const Quaternion3D< double > &q, SmallMatrix< double, 3, 1 > &y, SmallMatrix< double, 3, 3 > &Jx, SmallMatrix< double, 3, 4 > &Jq)
 
BLO_EXPIMP_TEMPLATE template BLO_API void blo::rotateVector (const SmallMatrix< float, 3, 1 > &x, const Quaternion3D< float > &q, SmallMatrix< float, 3, 1 > &y, SmallMatrix< float, 3, 3 > &Jx, SmallMatrix< float, 3, 4 > &Jq)
 
template<typename T >
const Point< T, 3 > blo::rotatePoint (const Point< T, 3 > &src, const Quaternion3D< T > &q)
 Rotates a point.
 
template<typename T >
void blo::rotatePoint (const Point< T, 3 > &X1, const Quaternion3D< T > &q, Point< T, 3 > &X2, SmallMatrix< T, 3, 3 > &J_X1, SmallMatrix< T, 3, 4 > &Jq)
 Rotates a point.
 
template<typename T >
const SmallMatrix< T, 3, 3 > blo::quaternionToRotationMatrix (const Quaternion3D< T > &q)
 Rotation matrix from quaternion representation.
 
template<typename T >
void blo::quaternionToRotationMatrix (const Quaternion3D< T > &q, SmallMatrix< T, 3, 3 > &R, SmallMatrix< T, 9, 4 > &J)
 Rotation matrix from quaternion representation.
 
BLO_EXPIMP_TEMPLATE template BLO_API void blo::quaternionToRotationMatrix (const Quaternion3D< double > &q, SmallMatrix< double, 3, 3 > &R, SmallMatrix< double, 9, 4 > &J)
 
BLO_EXPIMP_TEMPLATE template BLO_API void blo::quaternionToRotationMatrix (const Quaternion3D< float > &q, SmallMatrix< float, 3, 3 > &R, SmallMatrix< float, 9, 4 > &J)
 
template<typename T >
const Quaternion3D< T > blo::rotationMatrixToQuaternion (const SmallMatrix< T, 3, 3 > &R)
 Quaternion representation from rotation matrix.
 
template<typename T >
void blo::rotationMatrixToQuaternion (const SmallMatrix< T, 3, 3 > &R, Quaternion3D< T > &q, SmallMatrix< T, 4, 9 > &J)
 Quaternion representation from rotation matrix.
 
BLO_EXPIMP_TEMPLATE template BLO_API void blo::rotationMatrixToQuaternion (const SmallMatrix< double, 3, 3 > &R, Quaternion3D< double > &q, SmallMatrix< double, 4, 9 > &J)
 
BLO_EXPIMP_TEMPLATE template BLO_API void blo::rotationMatrixToQuaternion (const SmallMatrix< float, 3, 3 > &R, Quaternion3D< float > &q, SmallMatrix< float, 4, 9 > &J)
 
template<typename T >
const Quaternion3D< T > blo::angleAboutXAxisToQuaternion (const T &alpha)
 Quaternion representation from angle about the X-axis.
 
template<typename T >
const Quaternion3D< T > blo::angleAboutYAxisToQuaternion (const T &beta)
 Quaternion representation from angle about the Y-axis.
 
template<typename T >
const Quaternion3D< T > blo::angleAboutZAxisToQuaternion (const T &gamma)
 Quaternion representation from angle about the Z-axis.
 
template<typename T >
const Quaternion3D< T > blo::eulerAnglesZYXToQuaternion (const T &gamma, const T &beta, const T &alpha)
 Quaternion representation from Euler angles using the ZYX convention.
 
template<typename T >
void blo::eulerAnglesZYXToQuaternion (const T &gamma, const T &beta, const T &alpha, Quaternion3D< T > &q, SmallMatrix< T, 4, 3 > &J)
 Quaternion representation from Euler angles using the ZYX convention.
 
BLO_EXPIMP_TEMPLATE template BLO_API void blo::eulerAnglesZYXToQuaternion (const double &gamma, const double &beta, const double &alpha, Quaternion3D< double > &q, SmallMatrix< double, 4, 3 > &J)
 
BLO_EXPIMP_TEMPLATE template BLO_API void blo::eulerAnglesZYXToQuaternion (const float &gamma, const float &beta, const float &alpha, Quaternion3D< float > &q, SmallMatrix< float, 4, 3 > &J)
 
template<typename T >
void blo::quaternionToEulerAnglesZYX (const Quaternion3D< T > &q, T &gamma, T &beta, T &alpha)
 Euler angles from a quaternion representation using the ZYX convention.
 
BLO_EXPIMP_TEMPLATE template BLO_API void blo::quaternionToEulerAnglesZYX (const Quaternion3D< double > &q, double &gamma, double &beta, double &alpha)
 
BLO_EXPIMP_TEMPLATE template BLO_API void blo::quaternionToEulerAnglesZYX (const Quaternion3D< float > &q, float &gamma, float &beta, float &alpha)
 
template<typename T >
const Quaternion3D< T > blo::eulerAnglesZXYToQuaternion (const T &gamma, const T &alpha, const T &beta)
 Quaternion representation from Euler angles using the ZXY convention.
 
template<typename T >
void blo::eulerAnglesZXYToQuaternion (const T &gamma, const T &alpha, const T &beta, Quaternion3D< T > &q, SmallMatrix< T, 4, 3 > &J)
 Quaternion representation from Euler angles using the ZXY convention.
 
BLO_EXPIMP_TEMPLATE template BLO_API void blo::eulerAnglesZXYToQuaternion (const double &gamma, const double &alpha, const double &beta, Quaternion3D< double > &q, SmallMatrix< double, 4, 3 > &J)
 
BLO_EXPIMP_TEMPLATE template BLO_API void blo::eulerAnglesZXYToQuaternion (const float &gamma, const float &alpha, const float &beta, Quaternion3D< float > &q, SmallMatrix< float, 4, 3 > &J)
 
template<typename T >
void blo::quaternionToEulerAnglesZXY (const Quaternion3D< T > &q, T &gamma, T &alpha, T &beta)
 Quaternion representation from Euler angles using the ZXY convention.
 
BLO_EXPIMP_TEMPLATE template BLO_API void blo::quaternionToEulerAnglesZXY (const Quaternion3D< double > &q, double &gamma, double &alpha, double &beta)
 
BLO_EXPIMP_TEMPLATE template BLO_API void blo::quaternionToEulerAnglesZXY (const Quaternion3D< float > &q, float &gamma, float &alpha, float &beta)
 

Detailed Description

Quaternion3D declaration and related functions.