Mathter
A configurable 3D math library for game developers.
Namespaces | Functions
QuaternionFunction.hpp File Reference
#include "QuaternionImpl.hpp"

Go to the source code of this file.

Namespaces

 mathter
 

Functions

template<class T , bool Packed>
mathter::Abs (const Quaternion< T, Packed > &q)
 The euclidean length of the vector of the 4 elements of the quaternion. More...
 
template<class T , bool Packed>
Quaternion< T, Packed > mathter::Conjugate (const Quaternion< T, Packed > &q)
 Negates the imaginary values of the quaternion. More...
 
template<class T , bool Packed>
Quaternion< T, Packed > mathter::Exp (const Quaternion< T, Packed > &q)
 Natural quaternion exponentiation, base e. More...
 
template<class T , bool Packed>
Quaternion< T, Packed > mathter::Log (const Quaternion< T, Packed > &q)
 Natural quaternion logarithm, base e. More...
 
template<class T , bool Packed>
Quaternion< T, Packed > mathter::Pow (const Quaternion< T, Packed > &q, T a)
 Raises q to the power of a . More...
 
template<class T , bool Packed>
mathter::LengthSquared (const Quaternion< T, Packed > &q)
 Returns the square of the absolute value. More...
 
template<class T , bool Packed>
mathter::Length (const Quaternion< T, Packed > &q)
 Returns the absolute value of the quaternion. More...
 
template<class T , bool Packed>
Quaternion< T, Packed > mathter::Normalize (const Quaternion< T, Packed > &q)
 Returns the unit quaternion of the same direction. Does not change this object. More...
 
template<class T , bool Packed>
Quaternion< T, Packed > mathter::Inverse (const Quaternion< T, Packed > &q)
 Returns the quaternion of opposite rotation. More...
 
template<class T , bool Packed>
bool mathter::IsNormalized (const Quaternion< T, Packed > &q)
 Check if the quaternion is a unit quaternion, with some tolerance for floats. More...