astroforge.coordinates.rmat#

astroforge.coordinates.rmat(n, a)[source]#

Create a rotation matrix about primary axis n with rotation angle a.

Parameters:
  • n (int) – Primary axis of rotation

  • a (float) – Angle of rotation (radians)

Returns:

rmx – Rotation matrix

Return type:

NDArray[np.float64]