rmat_from_axis_angle#

anri.geom.rmat_from_axis_angle(axis, angle)[source]#

Return rotation matrix for positive right-handed rotation about axis by angle (degrees).

Parameters:
  • axis (Array) – [3] Rotation axis vector

  • angle (float) – Rotation angle in degrees

Returns:

R (jax.Array) – [3,3] Rotation matrix. \(\matr{R} \cdot \vec{v_{\text{sample}}} = \vec{v_{\text{lab}}}\)