|
constexpr | Quaternion (Type x, Type y, Type z, Type w) |
|
constexpr | Quaternion (const Vector3< Type > &v, Type s) |
| Construct a Quaternion from a vector and a scalar.
|
|
constexpr | Quaternion (const Vector4< Type > &v) |
|
constexpr void | setIdentity () |
|
constexpr Type | getScalar () const |
|
void | setScalar (Type w) |
|
constexpr Vector3< Type > | getVector () const |
|
constexpr void | setVector (const Vector3< Type > &v) |
|
constexpr Vector3< Type > | operator* (const Vector3< Type > &v) const |
| Rotates the given vector with the quaternion.
|
|
constexpr Quaternion | operator* (const Quaternion &q) const |
|
constexpr void | invert () |
|
constexpr Quaternion | getInverse () const |
|
constexpr void | conjugate () |
|
constexpr Quaternion | getConjugate () const |
|
constexpr Vector3< Type > | rotateVector (const Vector3< Type > &vector) const |
| Rotates the given vector with this quaternion and returns the resulting vector.
|
|
constexpr void | setAxisAngle (Vector3< Type > axis, Type angle) |
|
constexpr void | getAxisAngle (Vector3< Type > &axis, Type &angle) const |
|
constexpr void | eulerToQuat (Type roll, Type pitch, Type yaw) |
|
constexpr Matrix4x4< Type > | getRotMatrix () const |
|
constexpr void | setRotMatrix (const Matrix4x4< Type > &m) |
|
constexpr void | slerp (const Quaternion &src, const Quaternion &dst, Type t) |
|
constexpr | Vector4 (const Type x, const Type y, const Type z, const Type w) |
|
constexpr | Vector4 (const Vector3< Type > &v, Type w) |
|
template<typename U , STK::enable_if_safe_cast_t< U, Type > = true> |
constexpr | Vector4 (const Vector4< U > &v) |
|
template<typename U > |
constexpr | operator Vector4< U > () const |
|
constexpr const Type & | x () const |
|
constexpr const Type & | y () const |
|
constexpr const Type & | z () const |
|
constexpr const Type & | w () const |
|
constexpr ranges::span< const Type, 4 > | data () const |
|
constexpr Type & | x () |
|
constexpr Type & | y () |
|
constexpr Type & | z () |
|
constexpr Type & | w () |
|
constexpr ranges::span< Type, 4 > | data () |
|
constexpr void | setX (Type x) |
|
constexpr void | setY (Type y) |
|
constexpr void | setZ (Type z) |
|
constexpr void | setW (Type w) |
|
constexpr bool | fuzzyCompare (const Vector4 &v2, Type eps) const |
|
constexpr void | setValues (const Type &x, const Type &y, const Type &z, const Type &w) |
|
constexpr void | setValues (ranges::span< const Type, 4 > v) |
|
constexpr void | getValues (ranges::span< Type, 4 > v) const |
|
constexpr void | scale (const Type &s) |
|
constexpr void | add (const Vector4 &t) |
|
constexpr Type | lengthSquared () const |
| Length squared.
|
|
constexpr Type | length () const |
|
constexpr Vector4 & | normalize () |
| Normalization.
|
|
constexpr Vector4 & | operator+= (const Vector4 &v) |
| Addition.
|
|
constexpr Vector4 & | operator-= (const Vector4 &v) |
| Subtraction.
|
|
constexpr Vector4 | operator- () const |
| Unary negation.
|
|
constexpr Vector4 | operator/ (Type v) const |
| Scalar division.
|
|
constexpr Vector4 & | operator*= (Type v) |
| Scalar multiplication.
|
|
constexpr Vector4 & | operator/= (Type v) |
| Scalar division.
|
|