Holds a quaternion (a 3D vector and a scalar value). More...
#include <juce_Quaternion.h>


Public Member Functions | |
| Quaternion () noexcept | |
| Quaternion (const Quaternion &other) noexcept | |
| Quaternion (Type x, Type y, Type z, Type w) noexcept | |
| Quaternion (Vector3D< Type > vectorPart, Type scalarPart) noexcept | |
| Matrix3D< Type > | getRotationMatrix () const noexcept |
| Returns the matrix that will perform the rotation specified by this quaternion. | |
| Type | length () const noexcept |
| Type | normal () const noexcept |
| Quaternion | normalised () const noexcept |
| Quaternion & | operator*= (Quaternion other) noexcept |
| Quaternion & | operator= (Quaternion other) noexcept |
Static Public Member Functions | |
| static Quaternion | fromAngle (Type angle, Vector3D< Type > axis) noexcept |
| Creates a quaternion from an angle and an axis. | |
Public Attributes | |
| Type | scalar |
| The scalar part of the quaternion. | |
| Vector3D< Type > | vector |
| The vector part of the quaternion. | |
Holds a quaternion (a 3D vector and a scalar value).
@tags{OpenGL}
|
inlinenoexcept |
Referenced by juce::Quaternion< Type >::fromAngle(), and juce::Quaternion< Type >::normalised().
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinestaticnoexcept |
Creates a quaternion from an angle and an axis.
References juce::Quaternion< Type >::Quaternion().
|
inlinenoexcept |
Returns the matrix that will perform the rotation specified by this quaternion.
References juce::Quaternion< Type >::normal(), juce::Quaternion< Type >::scalar, and juce::Quaternion< Type >::vector.
Referenced by juce::Draggable3DOrientation::getRotationMatrix().
|
inlinenoexcept |
References juce::Quaternion< Type >::normal().
Referenced by juce::Quaternion< Type >::normalised().
|
inlinenoexcept |
References juce::Quaternion< Type >::scalar, and juce::Quaternion< Type >::vector.
Referenced by juce::Quaternion< Type >::getRotationMatrix(), and juce::Quaternion< Type >::length().
|
inlinenoexcept |
|
inlinenoexcept |
References juce::Quaternion< Type >::scalar, and juce::Quaternion< Type >::vector.
|
inlinenoexcept |
References juce::Quaternion< Type >::scalar, and juce::Quaternion< Type >::vector.
| Type juce::Quaternion< Type >::scalar |
The scalar part of the quaternion.
Referenced by juce::Quaternion< Type >::getRotationMatrix(), juce::Quaternion< Type >::normal(), juce::Quaternion< Type >::normalised(), juce::Quaternion< Type >::operator*=(), and juce::Quaternion< Type >::operator=().
| Vector3D<Type> juce::Quaternion< Type >::vector |
The vector part of the quaternion.
Referenced by juce::Quaternion< Type >::getRotationMatrix(), juce::Quaternion< Type >::normal(), juce::Quaternion< Type >::normalised(), juce::Quaternion< Type >::operator*=(), and juce::Quaternion< Type >::operator=().