astroforge.coordinates.rmfu#

astroforge.coordinates.rmfu(n, c, s)[source]#

Create a rotation matrix about axis n, given the sine s and cosine c of the rotation angle.

Parameters:
  • n (int) – Primary axis of rotation, must be within (0, 1, 2)

  • c (float) – Cosine of the rotation angle

  • s (float) – Sine of the rotation angle

Returns:

R – Rotation matrix

Return type:

NDArray[np.float64]

Raises:

ValueError – Raised if the rotation axis is not in (0, 1, 2)