astroforge.coordinates.Rx#

astroforge.coordinates.Rx(angle)[source]#

Create a rotation matrix about the first axis by the given rotation angle. The rotation matrix is given by:

\[\begin{split}\begin{bmatrix} 1.0 & 0.0 & 0.0 \\ 0.0 & \cos (\theta) & \sin (\theta) \\ 0.0 & -\sin (\theta) & \cos (\theta) \end{bmatrix}\end{split}\]
Parameters:

angle (float) – Rotation angle (radians)

Returns:

R – Rotation matrix

Return type:

NDArray[np.float64]