rotation_matrix#

overlappy.wcs.rotation_matrix(angle: Unit('deg'))[source]#

3D rotation matrix that applies a rotation in only the first two dimensions. This has the form:

\[\begin{split}R(\theta) = \begin{bmatrix} \cos{\theta} & -\sin{\theta} & 0 \\ \sin{\theta} & \cos{\theta} & 0 \\ 0 & 0 & 1 \end{bmatrix}\end{split}\]