|
static Quaternion | CreateLookAtRotation (Vector3< float > const &from, Vector3< float > const &to, Vector3< float > const &up) |
|
static Quaternion | Rotate (Quaternion const &source, float angle, Vector3< float > const &axis) |
|
static Quaternion | Mix (Quaternion const &a, Quaternion const &b, float f) |
|
static Quaternion | Lerp (Quaternion const &a, Quaternion const &b, float f) |
|
static Quaternion | Slerp (Quaternion const &a, Quaternion const &b, float f) |
|
static Quaternion | Bilerp (Quaternion const &q00, Quaternion const &q10, Quaternion const &q01, Quaternion const &q11, float x, float y) |
|
Ocular::Math::Quaternion::Quaternion |
( |
float |
angle, |
|
|
Vector3< float > const & |
axis |
|
) |
| |
- Parameters
-
[in] | angle | Angle to rotate in degrees |
[in] | axis | Axis to rotate around |
Performs bilinear quaternion interpolation and returns the result quaternion.
- Parameters
-
[in] | q00 | "Lower-left" starting point for interpolation (x == 0.0 && y == 0.0) |
[in] | q10 | "Lower-right" ending point for interpolation (x == 1.0) |
[in] | q01 | "Upper-left" ending point for interpolation (y == 1.0) |
[in] | q11 | "Upper-right" ending point for interpolation (x == 1.0 && y == 1.0) |
- Returns
- The resulting Quaternion (not normalized).
Creates a LookAt Quaternion rotation.
- Note
- The result may need to be reversed depending on end use-case (see getConjugate)
- Parameters
-
[in] | from | Point in space to be looking from (aka eye point) |
[in] | to | Point in spaceto be looking towards |
[in] | up | The up vector. In most cases, this is the World up vector (Matrix3f::Up()) |
Quaternion Ocular::Math::Quaternion::getConjugate |
( |
| ) |
const |
For internal use only. Only modify this pointer if you want your application to crash.
Quaternion Ocular::Math::Quaternion::getInverse |
( |
| ) |
const |
Quaternion Ocular::Math::Quaternion::getNormalized |
( |
| ) |
const |
void Ocular::Math::Quaternion::inverse |
( |
| ) |
|
Performs linear quaternion interpolation and returns the resulting quaternion.
- Parameters
-
[in] | a | The starting Quaternion (result == a when t == 0.0). |
[in] | b | The ending Quaternion (result == b when t == 1.0). |
[in] | f | Fractional value [0.0, 1.0] |
- Returns
- The resulting Quaternion (not normalized).
void Ocular::Math::Quaternion::normalize |
( |
| ) |
|
Performs spherical interpolation and returns the resulting quaternion.
- Parameters
-
[in] | a | The starting Quaternion (result == a when t == 0.0) |
[in] | b | The ending Quaternion (result == b when t == 1.0) |
[in] | f | Fractional value [0.0, 1.0] |
- Returns
- The resulting Quaternion (not normalized).
The documentation for this class was generated from the following files:
- C:/Projects/OcularEngine/OcularCore/include/Math/Quaternion.hpp
- C:/Projects/OcularEngine/OcularCore/src/Math/Quaternion.cpp