astroforge.coordinates.Ry#
- astroforge.coordinates.Ry(angle)[source]#
Create a rotation matrix about the second axis by the given rotation angle. The rotation matrix is given by:
\[\begin{split}\begin{bmatrix} \cos (\theta) & 0.0 & -\sin (\theta) \\ 0.0 & 1.0 & 0.0 \\ \sin (\theta) & 0.0 & \cos (\theta) \end{bmatrix}\end{split}\]- Parameters:
angle (float) – Rotation angle (radians)
- Returns:
R – Rotation matrix
- Return type:
NDArray[np.float64]