Lugdunum  0.1.0
Functions
Quaternion.inl File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

template<typename T >
Quaternion< T > conjugate (const Quaternion< T > &lhs)
 
template<typename T >
Quaternion< T > normalize (const Quaternion< T > &lhs)
 
template<typename T >
Quaternion< T > inverse (const Quaternion< T > &lhs)
 
template<typename T >
dot (const Quaternion< T > &lhs, const Quaternion< T > &rhs)
 
template<typename T >
Quaternion< T > directionTo (const Vector< 3, T > &original, const Vector< 3, T > &expected)
 
template<typename T >
Quaternion< T > operator- (const Quaternion< T > &lhs)
 
template<typename T >
Quaternion< T > operator+ (const Quaternion< T > &lhs, const Quaternion< T > &rhs)
 
template<typename T >
Quaternion< T > operator- (const Quaternion< T > &lhs, const Quaternion< T > &rhs)
 
template<typename T >
Quaternion< T > operator* (const Quaternion< T > &lhs, const Quaternion< T > &rhs)
 
template<typename T >
Quaternion< T > operator/ (const Quaternion< T > &lhs, const Quaternion< T > &rhs)
 
template<typename T >
bool operator== (const Quaternion< T > &lhs, const Quaternion< T > &rhs)
 
template<typename T >
bool operator!= (const Quaternion< T > &lhs, const Quaternion< T > &rhs)
 
template<typename T >
std::ostream & operator<< (std::ostream &os, const Quaternion< T > &quaternion)
 

Function Documentation

◆ conjugate()

template<typename T >
Quaternion<T> conjugate ( const Quaternion< T > &  lhs)
inline

Definition at line 176 of file Quaternion.inl.

◆ normalize()

template<typename T >
Quaternion<T> normalize ( const Quaternion< T > &  lhs)
inline

Definition at line 181 of file Quaternion.inl.

◆ inverse()

template<typename T >
Quaternion<T> inverse ( const Quaternion< T > &  lhs)
inline

Definition at line 187 of file Quaternion.inl.

◆ dot()

template<typename T >
T dot ( const Quaternion< T > &  lhs,
const Quaternion< T > &  rhs 
)
inline

Definition at line 205 of file Quaternion.inl.

◆ directionTo()

template<typename T >
Quaternion<T> directionTo ( const Vector< 3, T > &  original,
const Vector< 3, T > &  expected 
)

Definition at line 210 of file Quaternion.inl.

◆ operator-() [1/2]

template<typename T >
Quaternion<T> operator- ( const Quaternion< T > &  lhs)
inline

Definition at line 250 of file Quaternion.inl.

◆ operator+()

template<typename T >
Quaternion<T> operator+ ( const Quaternion< T > &  lhs,
const Quaternion< T > &  rhs 
)
inline

Definition at line 255 of file Quaternion.inl.

◆ operator-() [2/2]

template<typename T >
Quaternion<T> operator- ( const Quaternion< T > &  lhs,
const Quaternion< T > &  rhs 
)
inline

Definition at line 260 of file Quaternion.inl.

◆ operator*()

template<typename T >
Quaternion<T> operator* ( const Quaternion< T > &  lhs,
const Quaternion< T > &  rhs 
)
inline

Definition at line 265 of file Quaternion.inl.

◆ operator/()

template<typename T >
Quaternion<T> operator/ ( const Quaternion< T > &  lhs,
const Quaternion< T > &  rhs 
)
inline

Definition at line 275 of file Quaternion.inl.

◆ operator==()

template<typename T >
bool operator== ( const Quaternion< T > &  lhs,
const Quaternion< T > &  rhs 
)
inline

Definition at line 280 of file Quaternion.inl.

◆ operator!=()

template<typename T >
bool operator!= ( const Quaternion< T > &  lhs,
const Quaternion< T > &  rhs 
)
inline

Definition at line 285 of file Quaternion.inl.

◆ operator<<()

template<typename T >
std::ostream& operator<< ( std::ostream &  os,
const Quaternion< T > &  quaternion 
)

Definition at line 290 of file Quaternion.inl.