All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
quaternion.H File Reference
Include dependency graph for quaternion.H:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  quaternion
 Quaternion class used to perform rotations in 3D space. More...
 

Namespaces

 Foam
 Namespace for OpenFOAM.
 

Functions

Istream & operator>> (Istream &is, quaternion &)
 
Ostream & operator<< (Ostream &os, const quaternion &C)
 
scalar magSqr (const quaternion &q)
 
scalar mag (const quaternion &q)
 
quaternion conjugate (const quaternion &q)
 Return the conjugate of the given quaternion. More...
 
quaternion normalize (const quaternion &q)
 Return the normalized (unit) quaternion of the given quaternion. More...
 
quaternion inv (const quaternion &q)
 Return the inverse of the given quaternion. More...
 
word name (const quaternion &)
 Return a string representation of a quaternion. More...
 
quaternion slerp (const quaternion &qa, const quaternion &qb, const scalar t)
 Spherical linear interpolation of quaternions. More...
 
quaternion average (const UList< quaternion > &qs, const UList< scalar > w)
 Simple weighted average with sign change. More...
 
quaternion exp (const quaternion &q)
 Exponent of a quaternion. More...
 
quaternion pow (const quaternion &q, const label power)
 Power of a quaternion. More...
 
quaternion pow (const quaternion &q, const scalar power)
 Power of a quaternion. More...
 
template<>
bool contiguous< quaternion > ()
 Data associated with quaternion type are contiguous. More...
 
bool operator== (const quaternion &q1, const quaternion &q2)
 
bool operator!= (const quaternion &q1, const quaternion &q2)
 
quaternion operator+ (const quaternion &q1, const quaternion &q2)
 
quaternion operator- (const quaternion &q)
 
quaternion operator- (const quaternion &q1, const quaternion &q2)
 
scalar operator & (const quaternion &q1, const quaternion &q2)
 
quaternion operator* (const quaternion &q1, const quaternion &q2)
 
quaternion operator/ (const quaternion &q1, const quaternion &q2)
 
quaternion operator* (const scalar s, const quaternion &q)
 
quaternion operator* (const quaternion &q, const scalar s)
 
quaternion operator/ (const quaternion &q, const scalar s)
 

Detailed Description

Original source file quaternion.H

Definition in file quaternion.H.