data structure reprenseting a Quaternion.
More...
#include <quaternion.h>
data structure reprenseting a Quaternion.
Quaternion::Quaternion |
( |
GLfloat |
angle, |
|
|
Vector3Gf |
axis |
|
) |
| |
Builds a quaternion in polar form. Used for rotations
Quaternion::Quaternion |
( |
Vector3Gf |
axis | ) |
|
Builds a purely imaginary quaternion.
- Returns
- the conjugate of this quaternion
- Returns
- the inverse of this quaternion
GLfloat Quaternion::norm |
( |
| ) |
const |
- Returns
- the norm of the quaternion
void Quaternion::normalize |
( |
| ) |
|
divides this quaternion by its norm
GLfloat Quaternion::squaredNorm |
( |
| ) |
const |
- Returns
- the squared norm of the quaternion
The documentation for this struct was generated from the following files: