Quaternion class.
More...
#include <Quat.h>
Quat::Quat |
( |
double |
x, |
|
|
double |
y, |
|
|
double |
z, |
|
|
double |
w |
|
) |
| |
void Quat::copy |
( |
const Quat & |
q | ) |
|
Copy state from other quaternion.
Vec3 Quat::getAxis |
( |
| ) |
const |
Quat Quat::multiply |
( |
const Quat & |
p | ) |
const |
Multiply with other quaternion.
Vec3 Quat::multiplyVector |
( |
const Vec3 & |
v | ) |
const |
Normalize this vector. Will change state.
double& sc::Quat::operator[] |
( |
int |
i | ) |
|
|
inline |
- Returns
- a reference to the i:th element of the quaternion in the order x,y,z,w
double sc::Quat::operator[] |
( |
int |
i | ) |
const |
|
inline |
- Returns
- the value of the i:th element of the quaternion in the order x,y,z,w
void Quat::set |
( |
double |
x, |
|
|
double |
y, |
|
|
double |
z, |
|
|
double |
w |
|
) |
| |
The documentation for this class was generated from the following files: