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

Rotation related functions. More...

#include "defs.h"
#include "rotations.inl"

Namespaces

namespace  blo
 The blo library.
 

Functions

template<typename T >
const SmallMatrix< T, 2, 2 > blo::angleToRotationMatrix (const T &theta)
 Rotation matrix from angle.
 
template<typename T >
const T blo::rotationMatrixToAngle (const SmallMatrix< T, 2, 2 > &R)
 Angle from rotation matrix.
 
template<typename T >
const SmallMatrix< T, 2, 2 > blo::interpolateRotation (const T &alpha, const SmallMatrix< T, 2, 2 > &R1, const SmallMatrix< T, 2, 2 > &R2)
 Interpolates between two 2D rotation matrices.
 
template<typename T >
void blo::interpolateRotations (const T *pSrcAlpha, SmallMatrix< T, 2, 2 > *pDst, int count, const SmallMatrix< T, 2, 2 > &R1, const SmallMatrix< T, 2, 2 > &R2)
 Interpolates between two 2D rotation matrices.
 
template<typename T >
const AngleAxis3D< T > blo::interpolateRotation (const T &alpha, const AngleAxis3D< T > &omega1, const AngleAxis3D< T > &omega2)
 Interpolates between two angle-axis representations of 3D rotations.
 
BLO_EXPIMP_TEMPLATE template BLO_API const AngleAxis3D< double > blo::interpolateRotation (const double &alpha, const AngleAxis3D< double > &omega1, const AngleAxis3D< double > &omega2)
 
BLO_EXPIMP_TEMPLATE template BLO_API const AngleAxis3D< float > blo::interpolateRotation (const float &alpha, const AngleAxis3D< float > &omega1, const AngleAxis3D< float > &omega2)
 
template<typename T >
void blo::interpolateRotations (const T *pSrcAlpha, AngleAxis3D< T > *pDst, int count, const AngleAxis3D< T > &omega1, const AngleAxis3D< T > &omega2)
 Interpolates between two angle-axis representations of 3D rotations.
 
BLO_EXPIMP_TEMPLATE template BLO_API void blo::interpolateRotations (const double *pSrcAlpha, AngleAxis3D< double > *pDst, int count, const AngleAxis3D< double > &omega1, const AngleAxis3D< double > &omega2)
 
BLO_EXPIMP_TEMPLATE template BLO_API void blo::interpolateRotations (const float *pSrcAlpha, AngleAxis3D< float > *pDst, int count, const AngleAxis3D< float > &omega1, const AngleAxis3D< float > &omega2)
 
template<typename T >
const SmallMatrix< T, 3, 3 > blo::interpolateRotation (const T &alpha, const SmallMatrix< T, 3, 3 > &R1, const SmallMatrix< T, 3, 3 > &R2)
 Interpolates between two 3D rotation matrices.
 
BLO_EXPIMP_TEMPLATE template BLO_API const SmallMatrix< double, 3, 3 > blo::interpolateRotation (const double &alpha, const SmallMatrix< double, 3, 3 > &R1, const SmallMatrix< double, 3, 3 > &R2)
 
BLO_EXPIMP_TEMPLATE template BLO_API const SmallMatrix< float, 3, 3 > blo::interpolateRotation (const float &alpha, const SmallMatrix< float, 3, 3 > &R1, const SmallMatrix< float, 3, 3 > &R2)
 
template<typename T >
void blo::interpolateRotations (const T *pSrcAlpha, SmallMatrix< T, 3, 3 > *pDst, int count, const SmallMatrix< T, 3, 3 > &R1, const SmallMatrix< T, 3, 3 > &R2)
 Interpolates between two 3D rotation matrices.
 
BLO_EXPIMP_TEMPLATE template BLO_API void blo::interpolateRotations (const double *pSrcAlpha, SmallMatrix< double, 3, 3 > *pDst, int count, const SmallMatrix< double, 3, 3 > &R1, const SmallMatrix< double, 3, 3 > &R2)
 
BLO_EXPIMP_TEMPLATE template BLO_API void blo::interpolateRotations (const float *pSrcAlpha, SmallMatrix< float, 3, 3 > *pDst, int count, const SmallMatrix< float, 3, 3 > &R1, const SmallMatrix< float, 3, 3 > &R2)
 
template<typename T >
const Quaternion3D< T > blo::interpolateRotation (const T &alpha, const Quaternion3D< T > &q1, const Quaternion3D< T > &q2)
 Interpolates between two quaternion representations of 3D rotations.
 
BLO_EXPIMP_TEMPLATE template BLO_API const Quaternion3D< double > blo::interpolateRotation (const double &alpha, const Quaternion3D< double > &q1, const Quaternion3D< double > &q2)
 
BLO_EXPIMP_TEMPLATE template BLO_API const Quaternion3D< float > blo::interpolateRotation (const float &alpha, const Quaternion3D< float > &q1, const Quaternion3D< float > &q2)
 
template<typename T >
void blo::interpolateRotations (const T *pSrcAlpha, Quaternion3D< T > *pDst, int count, const Quaternion3D< T > &q1, const Quaternion3D< T > &q2)
 Interpolates between two quaternion representations of 3D rotations.
 
BLO_EXPIMP_TEMPLATE template BLO_API void blo::interpolateRotations (const double *pSrcAlpha, Quaternion3D< double > *pDst, int count, const Quaternion3D< double > &q1, const Quaternion3D< double > &q2)
 
BLO_EXPIMP_TEMPLATE template BLO_API void blo::interpolateRotations (const float *pSrcAlpha, Quaternion3D< float > *pDst, int count, const Quaternion3D< float > &q1, const Quaternion3D< float > &q2)
 
template<typename T >
const SmallMatrix< T, 2, 2 > blo::meanRotation (const SmallMatrix< T, 2, 2 > *pSrc, int count)
 Mean rotation matrix of a set of 2D rotation matrices.
 
BLO_EXPIMP_TEMPLATE template BLO_API const SmallMatrix< double, 2, 2 > blo::meanRotation (const SmallMatrix< double, 2, 2 > *pSrc, int count)
 
BLO_EXPIMP_TEMPLATE template BLO_API const SmallMatrix< float, 2, 2 > blo::meanRotation (const SmallMatrix< float, 2, 2 > *pSrc, int count)
 
template<typename T >
const SmallMatrix< T, 2, 2 > blo::meanRotation (const SmallMatrix< T, 2, 2 > *pSrc, const T *pSrc_w, int count)
 Weighted mean rotation matrix of a set of 2D rotation matrices.
 
BLO_EXPIMP_TEMPLATE template BLO_API const SmallMatrix< double, 2, 2 > blo::meanRotation (const SmallMatrix< double, 2, 2 > *pSrc, const double *pSrc_w, int count)
 
BLO_EXPIMP_TEMPLATE template BLO_API const SmallMatrix< float, 2, 2 > blo::meanRotation (const SmallMatrix< float, 2, 2 > *pSrc, const float *pSrc_w, int count)
 
template<typename T >
const SmallMatrix< T, 3, 3 > blo::meanRotation (const SmallMatrix< T, 3, 3 > *pSrc, int count)
 Mean rotation matrix of a set of 3D rotation matrices.
 
BLO_EXPIMP_TEMPLATE template BLO_API const SmallMatrix< double, 3, 3 > blo::meanRotation (const SmallMatrix< double, 3, 3 > *pSrc, int count)
 
BLO_EXPIMP_TEMPLATE template BLO_API const SmallMatrix< float, 3, 3 > blo::meanRotation (const SmallMatrix< float, 3, 3 > *pSrc, int count)
 
template<typename T >
const SmallMatrix< T, 3, 3 > blo::meanRotation (const SmallMatrix< T, 3, 3 > *pSrc, const T *pSrc_w, int count)
 Weighted mean rotation matrix of a set of 3D rotation matrices.
 
BLO_EXPIMP_TEMPLATE template BLO_API const SmallMatrix< double, 3, 3 > blo::meanRotation (const SmallMatrix< double, 3, 3 > *pSrc, const double *pSrc_w, int count)
 
BLO_EXPIMP_TEMPLATE template BLO_API const SmallMatrix< float, 3, 3 > blo::meanRotation (const SmallMatrix< float, 3, 3 > *pSrc, const float *pSrc_w, int count)
 
template<typename T >
const Quaternion3D< T > blo::meanRotation (const Quaternion3D< T > *pSrc, int count)
 Mean quaternion representation of a set of quaternion representations of 3D rotations.
 
BLO_EXPIMP_TEMPLATE template BLO_API const Quaternion3D< double > blo::meanRotation (const Quaternion3D< double > *pSrc, int count)
 
BLO_EXPIMP_TEMPLATE template BLO_API const Quaternion3D< float > blo::meanRotation (const Quaternion3D< float > *pSrc, int count)
 
template<typename T >
const Quaternion3D< T > blo::meanRotation (const Quaternion3D< T > *pSrc, const T *pSrc_w, int count)
 Weighted mean quaternion representation of a set of quaternion representations of 3D rotations.
 
BLO_EXPIMP_TEMPLATE template BLO_API const Quaternion3D< double > blo::meanRotation (const Quaternion3D< double > *pSrc, const double *pSrc_w, int count)
 
BLO_EXPIMP_TEMPLATE template BLO_API const Quaternion3D< float > blo::meanRotation (const Quaternion3D< float > *pSrc, const float *pSrc_w, int count)
 
template<typename T >
const SmallMatrix< T, 3, 3 > blo::angleAboutXAxisToRotationMatrix (const T &alpha)
 Rotation matrix from angle about the X-axis.
 
template<typename T >
const SmallMatrix< T, 3, 3 > blo::angleAboutYAxisToRotationMatrix (const T &beta)
 Rotation matrix from angle about the Y-axis.
 
template<typename T >
const SmallMatrix< T, 3, 3 > blo::angleAboutZAxisToRotationMatrix (const T &gamma)
 Rotation matrix from angle about the Z-axis.
 
template<typename T >
const SmallMatrix< T, 3, 3 > blo::eulerAnglesZYXToRotationMatrix (const T &gamma, const T &beta, const T &alpha)
 Rotation matrix from Euler angles using the ZYX convention.
 
template<typename T >
void blo::eulerAnglesZYXToRotationMatrix (const T &gamma, const T &beta, const T &alpha, SmallMatrix< T, 3, 3 > &R, SmallMatrix< T, 9, 3 > &J)
 Rotation matrix from Euler angles using the ZYX convention.
 
BLO_EXPIMP_TEMPLATE template BLO_API void blo::eulerAnglesZYXToRotationMatrix (const double &gamma, const double &beta, const double &alpha, SmallMatrix< double, 3, 3 > &R, SmallMatrix< double, 9, 3 > &J)
 
BLO_EXPIMP_TEMPLATE template BLO_API void blo::eulerAnglesZYXToRotationMatrix (const float &gamma, const float &beta, const float &alpha, SmallMatrix< float, 3, 3 > &R, SmallMatrix< float, 9, 3 > &J)
 
template<typename T >
void blo::rotationMatrixToEulerAnglesZYX (const SmallMatrix< T, 3, 3 > &R, T &gamma, T &beta, T &alpha)
 Euler angles from a rotation matrix using the ZYX convention.
 
BLO_EXPIMP_TEMPLATE template BLO_API void blo::rotationMatrixToEulerAnglesZYX (const SmallMatrix< double, 3, 3 > &R, double &gamma, double &beta, double &alpha)
 
BLO_EXPIMP_TEMPLATE template BLO_API void blo::rotationMatrixToEulerAnglesZYX (const SmallMatrix< float, 3, 3 > &R, float &gamma, float &beta, float &alpha)
 
template<typename T >
const SmallMatrix< T, 3, 3 > blo::eulerAnglesZXYToRotationMatrix (const T &gamma, const T &alpha, const T &beta)
 Rotation matrix from Euler angles using the ZXY convention.
 
template<typename T >
void blo::eulerAnglesZXYToRotationMatrix (const T &gamma, const T &alpha, const T &beta, SmallMatrix< T, 3, 3 > &R, SmallMatrix< T, 9, 3 > &J)
 Rotation matrix from Euler angles using the ZXY convention.
 
BLO_EXPIMP_TEMPLATE template BLO_API void blo::eulerAnglesZXYToRotationMatrix (const double &gamma, const double &alpha, const double &beta, SmallMatrix< double, 3, 3 > &R, SmallMatrix< double, 9, 3 > &J)
 
BLO_EXPIMP_TEMPLATE template BLO_API void blo::eulerAnglesZXYToRotationMatrix (const float &gamma, const float &alpha, const float &beta, SmallMatrix< float, 3, 3 > &R, SmallMatrix< float, 9, 3 > &J)
 
template<typename T >
void blo::rotationMatrixToEulerAnglesZXY (const SmallMatrix< T, 3, 3 > &R, T &gamma, T &alpha, T &beta)
 Rotation matrix from Euler angles using the ZXY convention.
 
BLO_EXPIMP_TEMPLATE template BLO_API void blo::rotationMatrixToEulerAnglesZXY (const SmallMatrix< double, 3, 3 > &R, double &gamma, double &alpha, double &beta)
 
BLO_EXPIMP_TEMPLATE template BLO_API void blo::rotationMatrixToEulerAnglesZXY (const SmallMatrix< float, 3, 3 > &R, float &gamma, float &alpha, float &beta)
 
template<typename T >
const SmallMatrix< T, 2, 2 > blo::estimateRotation (const SmallMatrix< T, 2, 2 > *pSrc1, const SmallMatrix< T, 2, 2 > *pSrc2, int count)
 Estimates the rotation matrix from rotation matrix correspondences.
 
BLO_EXPIMP_TEMPLATE template BLO_API const SmallMatrix< double, 2, 2 > blo::estimateRotation (const SmallMatrix< double, 2, 2 > *pSrc1, const SmallMatrix< double, 2, 2 > *pSrc2, int count)
 
BLO_EXPIMP_TEMPLATE template BLO_API const SmallMatrix< float, 2, 2 > blo::estimateRotation (const SmallMatrix< float, 2, 2 > *pSrc1, const SmallMatrix< float, 2, 2 > *pSrc2, int count)
 
template<typename T >
const SmallMatrix< T, 2, 2 > blo::estimateRotation (const SmallMatrix< T, 2, 2 > *pSrc1, const SmallMatrix< T, 2, 2 > *pSrc2, const T *pSrc_w, int count)
 Estimates the weighted rotation matrix from rotation matrix correspondences.
 
BLO_EXPIMP_TEMPLATE template BLO_API const SmallMatrix< double, 2, 2 > blo::estimateRotation (const SmallMatrix< double, 2, 2 > *pSrc1, const SmallMatrix< double, 2, 2 > *pSrc2, const double *pSrc_w, int count)
 
BLO_EXPIMP_TEMPLATE template BLO_API const SmallMatrix< float, 2, 2 > blo::estimateRotation (const SmallMatrix< float, 2, 2 > *pSrc1, const SmallMatrix< float, 2, 2 > *pSrc2, const float *pSrc_w, int count)
 
template<typename T >
const SmallMatrix< T, 3, 3 > blo::estimateRotation (const SmallMatrix< T, 3, 3 > *pSrc1, const SmallMatrix< T, 3, 3 > *pSrc2, int count)
 Estimates the rotation matrix from rotation matrix correspondences.
 
BLO_EXPIMP_TEMPLATE template BLO_API const SmallMatrix< double, 3, 3 > blo::estimateRotation (const SmallMatrix< double, 3, 3 > *pSrc1, const SmallMatrix< double, 3, 3 > *pSrc2, int count)
 
BLO_EXPIMP_TEMPLATE template BLO_API const SmallMatrix< float, 3, 3 > blo::estimateRotation (const SmallMatrix< float, 3, 3 > *pSrc1, const SmallMatrix< float, 3, 3 > *pSrc2, int count)
 
template<typename T >
const SmallMatrix< T, 3, 3 > blo::estimateRotation (const SmallMatrix< T, 3, 3 > *pSrc1, const SmallMatrix< T, 3, 3 > *pSrc2, const T *pSrc_w, int count)
 Estimates the weighted rotation matrix from rotation matrix correspondences.
 
BLO_EXPIMP_TEMPLATE template BLO_API const SmallMatrix< double, 3, 3 > blo::estimateRotation (const SmallMatrix< double, 3, 3 > *pSrc1, const SmallMatrix< double, 3, 3 > *pSrc2, const double *pSrc_w, int count)
 
BLO_EXPIMP_TEMPLATE template BLO_API const SmallMatrix< float, 3, 3 > blo::estimateRotation (const SmallMatrix< float, 3, 3 > *pSrc1, const SmallMatrix< float, 3, 3 > *pSrc2, const float *pSrc_w, int count)
 
template<typename T >
const Quaternion3D< T > blo::estimateRotation (const Quaternion3D< T > *pSrc1, const Quaternion3D< T > *pSrc2, int count)
 Estimates the quaternion representation from quaternion representation of 3D rotation correspondences.
 
BLO_EXPIMP_TEMPLATE template BLO_API const Quaternion3D< double > blo::estimateRotation (const Quaternion3D< double > *pSrc1, const Quaternion3D< double > *pSrc2, int count)
 
BLO_EXPIMP_TEMPLATE template BLO_API const Quaternion3D< float > blo::estimateRotation (const Quaternion3D< float > *pSrc1, const Quaternion3D< float > *pSrc2, int count)
 
template<typename T >
const Quaternion3D< T > blo::estimateRotation (const Quaternion3D< T > *pSrc1, const Quaternion3D< T > *pSrc2, const T *pSrc_w, int count)
 Estimates the weighted quaternion representation from quaternion representation of 3D rotation correspondences.
 
BLO_EXPIMP_TEMPLATE template BLO_API const Quaternion3D< double > blo::estimateRotation (const Quaternion3D< double > *pSrc1, const Quaternion3D< double > *pSrc2, const double *pSrc_w, int count)
 
BLO_EXPIMP_TEMPLATE template BLO_API const Quaternion3D< float > blo::estimateRotation (const Quaternion3D< float > *pSrc1, const Quaternion3D< float > *pSrc2, const float *pSrc_w, int count)
 

Detailed Description

Rotation related functions.