Shortcuts

Template Function ripple::to_mat2x2

Function Documentation

template<typename T, typename L>
auto ripple::to_mat2x2(const Quat<T, L> &q) noexcept -> Mat<T, 2, 2>

Gets an ortogonal 2x2 matrix representing the rotation of the quaternion.

Return

A matrix representing the rotation.

Parameters
  • q: The quaternion to get the rotation matrix for.

Docs

Access comprehensive developer documentation for Ripple

View Docs

Tutorials

Get tutorials to help with understand all features

View Tutorials

Examples

Find examples to help get started

View Examples