 cf::math::RotationT< T > Class Template Reference

This class describes a rotation about an arbitrary origin and an arbitrary axis. More...

`#include "Rotation.hpp"`

## Public Member Functions

RotationT ()
The default constructor. It creates a rotation that represents a "null" rotation. More...

RotationT (const Vector3T< T > &Origin, const Vector3T< T > &Axis, const T &Angle)
The constructor for creating a rotation. More...

const Vector3T< T > & GetOrigin () const
Gets the origin of this rotation. More...

const Vector3T< T > & GetAxis () const
Gets the rotation axis. More...

GetAngle () const
Gets the rotation angle. More...

const Matrix3x3T< T > & GetRotMat () const
Gets the rotation matrix. More...

Vector3T< T > GetRotated (const Vector3T< T > &A) const
Rotates a vector with this rotation. More...

Vector3T< T > operator* (const Vector3T< T > &A) const
Same as GetRotated. More...

## Detailed Description

### template<class T> class cf::math::RotationT< T >

This class describes a rotation about an arbitrary origin and an arbitrary axis.

The mathematical background is simple, see for example the lecture notes of my computer graphics course in winter semester 2001/2002, D:\Uni\Computergrafik\Lecture02_AffineTransforms.pdf page 16.

## Constructor & Destructor Documentation

template<class T >
 cf::math::RotationT< T >::RotationT ( )
inline

The default constructor. It creates a rotation that represents a "null" rotation.

template<class T >
 cf::math::RotationT< T >::RotationT ( const Vector3T< T > & Origin, const Vector3T< T > & Axis, const T & Angle )
inline

The constructor for creating a rotation.

Parameters
 Origin The origin (center) of the rotation. Axis The axis of the rotation. Angle The Euler angle (in degrees) for the rotation.

## Member Function Documentation

template<class T >
 T cf::math::RotationT< T >::GetAngle ( ) const
inline

Gets the rotation angle.

template<class T >
 const Vector3T& cf::math::RotationT< T >::GetAxis ( ) const
inline

Gets the rotation axis.

template<class T >
 const Vector3T& cf::math::RotationT< T >::GetOrigin ( ) const
inline

Gets the origin of this rotation.

template<class T >
 Vector3T cf::math::RotationT< T >::GetRotated ( const Vector3T< T > & A ) const
inline

Rotates a vector with this rotation.

template<class T >
 const Matrix3x3T< T > & RotationT::GetRotMat ( ) const

Gets the rotation matrix.

template<class T >
 Vector3T cf::math::RotationT< T >::operator* ( const Vector3T< T > & A ) const
inline

Same as GetRotated.

The documentation for this class was generated from the following files: