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