38 explicit TQuaternion(
const std::array<U, 4>& xyzwValues);
87 using Base::operator [];
88 using Base::operator ==;
89 using Base::operator !=;
Definition TArithmeticArrayBase.h:20
auto begin() noexcept -> typename std::array< T, N >::iterator
Definition TArithmeticArrayBase.ipp:797
std::array< T, N > m
Definition TArithmeticArrayBase.h:217
std::vector< T > toVector() const
Definition TArithmeticArrayBase.ipp:842
std::array< T, N > toArray() const
Definition TArithmeticArrayBase.ipp:855
TSpanView< T, N > toView() const
Definition TArithmeticArrayBase.ipp:869
TQuaternion< T > & set(T value)
Definition TArithmeticArrayBase.ipp:604
auto end() noexcept -> typename std::array< T, N >::iterator
Definition TArithmeticArrayBase.ipp:811
std::string toString() const
Definition TArithmeticArrayBase.ipp:825
TSpan< T, N > toSpan()
Definition TArithmeticArrayBase.ipp:862
bool isEqual(const TQuaternion< T > &other) const
Definition TArithmeticArrayBase.ipp:646
Represents a 4x4 matrix.
Definition TMatrix4.h:17
Represents a quaternion.
Definition TQuaternion.h:17
PH_DEFINE_INLINE_RULE_OF_5_MEMBERS(TQuaternion)
void toRotationMatrix(TMatrix4< T > *out_result) const
Definition TQuaternion.ipp:256
TQuaternion conjugate() const
Definition TQuaternion.ipp:173
T & x()
Definition TQuaternion.ipp:95
TQuaternion add(const TQuaternion &rhs) const
Definition TQuaternion.ipp:232
TQuaternion & mulLocal(const TQuaternion &rhs)
Definition TQuaternion.ipp:204
T & z()
Definition TQuaternion.ipp:107
T & w()
Definition TQuaternion.ipp:113
T length() const
Definition TQuaternion.ipp:167
T dot(const TQuaternion &rhs) const
Definition TQuaternion.ipp:238
void setRot(const TVector3< T > &normalizedAxis, T radians)
Definition TQuaternion.ipp:244
TQuaternion sub(const TQuaternion &rhs) const
Definition TQuaternion.ipp:226
TQuaternion & conjugateLocal()
Definition TQuaternion.ipp:188
TQuaternion normalize() const
Definition TQuaternion.ipp:153
TQuaternion & normalizeLocal()
Definition TQuaternion.ipp:159
TQuaternion(T vx, T vy, T vz, T vw)
Definition TQuaternion.ipp:20
static TQuaternion makeNoRotation()
Definition TQuaternion.ipp:14
TQuaternion mul(const TVector3< T > &xyz) const
Quaternion multiplication (treating the input's w component as 0).
Definition TQuaternion.ipp:143
T & y()
Definition TQuaternion.ipp:101
Represents a 3-D vector.
Definition TVector3.h:17
Math functions and utilities.
Definition TransformInfo.h:10