|
system
The vocabulary types everything else shares
|
Une rotation dans l'espace, parametree par son scalaire. More...
#include <Quaternion.hpp>
Public Member Functions | |
| Quaternion () | |
| Quaternion (T w, T x, T y, T z) | |
| Quaternion | conjugate () const |
| void | normalize () |
| Le ramene sur la sphere unite. Un quaternion nul devient l'identite. | |
| void | enforceSign () |
| Choisit la representation a w positif. | |
| Vector3< T > | rotate (Vector3< T > point, Vector3< T > center={0, 0, 0}) const |
| Tourne un point autour d'un centre. | |
| Quaternion | operator* (const Quaternion &other) const |
| Compose deux rotations. L'ordre compte. | |
Static Public Member Functions | |
| static Quaternion | identity () |
| static Quaternion | fromEulerAngles (T x, T y, T z) |
| static Quaternion | fromAxisAngle (T angle, Vector3< T > axis) |
| Une rotation d'un angle autour d'un axe. | |
| static Quaternion | fromVectors (const Vector3< T > &v1, const Vector3< T > &v2, const Vector3< T > referenceUp={0, 1, 0}) |
| La rotation qui amene v1 sur v2. | |
Public Attributes | |
| T | w |
| T | x |
| T | y |
| T | z |
Une rotation dans l'espace, parametree par son scalaire.
Templatee comme Vector3 et Matrix : le quaternion et le vecteur qu'il tourne partagent le meme T, donc rotate() ne retrecit jamais son point.
|
inline |
|
inline |
|
inline |
|
inline |
Choisit la representation a w positif.
q et -q designent la MEME rotation. Fixer le signe rend deux orientations comparables composante par composante.
|
inlinestatic |
Une rotation d'un angle autour d'un axe.
| angle | en radians |
| axis | suppose unitaire |
|
inlinestatic |
|
inlinestatic |
La rotation qui amene v1 sur v2.
|
inlinestatic |
|
inline |
Le ramene sur la sphere unite. Un quaternion nul devient l'identite.
|
inline |
Compose deux rotations. L'ordre compte.
|
inline |
Tourne un point autour d'un centre.
| T Quaternion< T >::w |
| T Quaternion< T >::x |
| T Quaternion< T >::y |
| T Quaternion< T >::z |