![]() |
Nexus Engine
v0.0.1
|
Public Types | |
| using | value_type = T |
| using | size_type = usize |
Public Member Functions | |
| constexpr | Quaternion ()=default |
| constexpr | Quaternion (T x, T y, T z, T w) |
| template<std::floating_point U> | |
| constexpr | Quaternion (const Vec3< U > &axis, U angleRadians) |
| constexpr T & | X () |
| constexpr const T & | X () const |
| constexpr T & | Y () |
| constexpr const T & | Y () const |
| constexpr T & | Z () |
| constexpr const T & | Z () const |
| constexpr T & | W () |
| constexpr const T & | W () const |
| constexpr T * | Data () |
| constexpr const T * | Data () const |
| template<std::floating_point U> | |
| constexpr bool | operator== (const Quaternion< U > &other) const |
| template<std::floating_point U> | |
| constexpr Quaternion & | operator+= (const Quaternion< U > &other) |
| template<std::floating_point U> | |
| constexpr Quaternion & | operator-= (const Quaternion< U > &other) |
| template<std::floating_point U> | |
| constexpr Quaternion & | operator*= (const Quaternion< U > &other) |
| template<std::floating_point U> | |
| constexpr Quaternion & | operator*= (U scalar) |
| template<std::floating_point U> | |
| constexpr Quaternion & | operator/= (U scalar) |
| constexpr Quaternion | operator+ () const |
| constexpr Quaternion | operator- () const |
| constexpr T | LengthSquared () const |
| constexpr T | Length () const |
| constexpr Quaternion | Normalized () const |
| constexpr void | Normalize () |
| constexpr Quaternion | Conjugate () const |
| constexpr Quaternion | Inverse () const |
| constexpr Vec3< T > | RotateVector (const Vec3< T > &v) const |
| constexpr Vec3< T > | ToEuler () const |
| constexpr T | Pitch () const |
| constexpr T | Yaw () const |
| constexpr T | Roll () const |
| template<std::floating_point U> | |
| constexpr Quaternion< T > | FromEuler (U pitch, U yaw, U roll) |
| template<std::floating_point U> | |
| constexpr Quaternion< T > | FromAxisAngle (const Vec3< U > &axis, U angleRadians) |
| template<std::floating_point U> | |
| constexpr Quaternion< T > & | operator+= (const Quaternion< U > &other) |
| template<std::floating_point U> | |
| constexpr Quaternion< T > & | operator-= (const Quaternion< U > &other) |
| template<std::floating_point U> | |
| constexpr Quaternion< T > & | operator*= (const Quaternion< U > &other) |
| template<std::floating_point U> | |
| constexpr Quaternion< T > & | operator*= (U scalar) |
| template<std::floating_point U> | |
| constexpr Quaternion< T > & | operator/= (U scalar) |
Static Public Member Functions | |
| static constexpr Quaternion | Identity () |
| template<std::floating_point U> | |
| static constexpr Quaternion | FromEuler (U pitch, U yaw, U roll) |
| template<std::floating_point U> | |
| static constexpr Quaternion | FromAxisAngle (const Vec3< U > &axis, U angleRadians) |
| static constexpr size_type | Size () |
| using Nexus::Quaternion< T >::size_type = usize |
| using Nexus::Quaternion< T >::value_type = T |
|
constexprdefault |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
staticconstexpr |
|
constexpr |
|
staticconstexpr |
|
constexpr |
|
staticconstexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
staticconstexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |