Template Function Utils::operator*(Quaternion<T> const&, Quaternion<T> const&)¶
Defined in File Quaternion.hxx
Function Documentation¶
-
template<typename T>
inline Quaternion<T> Utils::operator*(Quaternion<T> const &a, Quaternion<T> const &b)¶
-
Multiplies two quaternions.
To multiply two quaternions, use the relationships:
\[ \mathbf{i} * \mathbf{j} = -\mathbf{j} * \mathbf{i} = \mathbf{k} \]\[ \mathbf{j} * \mathbf{k} = -\mathbf{k} * \mathbf{j} = \mathbf{i} \]\[ \mathbf{k} * \mathbf{i} = -\mathbf{i} * \mathbf{k} = \mathbf{j} \]\[ \mathbf{i} * \mathbf{i} = \mathbf{j} * \mathbf{j} = \mathbf{k} * \mathbf{k} = -1 \]