FreeFOAM The Cross-Platform CFD Toolkit
Hosted by SourceForge:
Get FreeFOAM at SourceForge.net.
            Fast, secure and Free Open Source software downloads

quaternion.H File Reference


Detailed Description

Definition in file quaternion.H.

#include "src/OpenFOAM/primitives/Scalar/scalar/scalar.H"
#include "src/OpenFOAM/primitives/Vector/vector/vector.H"
#include "src/OpenFOAM/primitives/Tensor/tensor/tensor.H"
#include "src/OpenFOAM/primitives/strings/word/word.H"
#include "src/OpenFOAM/primitives/contiguous/contiguous.H"
#include "src/OpenFOAM/primitives/quaternion/quaternionI.H"
Include dependency graph for quaternion.H:

Go to the source code of this file.

Classes

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

Namespaces

namespace  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.
quaternion  normalize (const quaternion &q)
 Return the normailzed (unit) quaternion of the given quaternion.
quaternion  inv (const quaternion &q)
 Return the inverse of the given quaternion.
word  name (const quaternion &)
 Return a string representation of a quaternion.
template<>
bool  contiguous< quaternion > ()
 Data associated with quaternion type are contiguous.
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)