All Classes |Grouped Classes |Index

Class CL_Quaternionx

Quaternion. More...

Derived from:

None

Derived by:

None

Group:

Math (Core)

#include <ClanLib/core.h>

Class Members:

Attributes:

to_matrix

Convert the quaternion to a rotation matrix.

magnitude

Get the quaternion magnitude.


Operations:

set

multiply

Multiply this quaternion by a specified matrix.

rotate

normalize

Normalizes this quaternion.

inverse

Inverse this quaternion.

rotate_vector

Rotates vector by this quaternion.


Operators:

operator*

Multiplication operator.

CL_Quaternionx

axis_angle

lerp

Linear Quaternion Interpolation.

multiply

slerp

Spherical Quaternion Interpolation.

Detailed description:

These quaternion templates are defined for: float ( CL_Quaternionf ), double ( CL_Quaterniond )