MathFu
An open source project by FPL.
 All Classes Namespaces Files Functions Variables Typedefs Friends Groups Pages
Quaternions

Quaternion class and functions. More...

Detailed Description

Quaternion class and functions.

MathFu provides a Quaternion class that utilizes SIMD optimized Matrix and Vector classes.

Classes

class  mathfu::Quaternion< T >
 Stores a Quaternion of type T and provides a set of utility operations on each Quaternion. More...
 

Functions

template<class T >
Quaternion< T > operator* (const T &s, const Quaternion< T > &q)
 Multiply a Quaternion by a scalar. More...
 

Variables

static Quaternion< T > mathfu::Quaternion< T >::identity = Quaternion<T>(1, 0, 0, 0)
 Contains a quaternion doing the identity transform.
 

Function Documentation

template<class T >
Quaternion< T > operator* ( const T &  s,
const Quaternion< T > &  q 
)
related

Multiply a Quaternion by a scalar.

This multiplies the angle of the rotation of the specified Quaternion by a scalar factor.

Parameters
sScalar to multiply with.
qQuaternion to scale.
Returns
Quaternion containing the result.