Skip to content

Instantly share code, notes, and snippets.

@rpapallas
Created March 22, 2018 16:16
Show Gist options
  • Save rpapallas/51617edbfce3ec5aef8e7759755fc50a to your computer and use it in GitHub Desktop.
Save rpapallas/51617edbfce3ec5aef8e7759755fc50a to your computer and use it in GitHub Desktop.
Rotation matrices by an angle θ about X, Y, Z axis
Rz(θ) =
[ cos θ -sin θ 0 ]
[ sin θ cos θ 0 ]
[ 0 0 1 ]
Ry(θ) =
[ cos θ 0 sin θ ]
[ 0 1 0 ]
[ -sin θ 0 cos θ ]
Rx(θ) =
[ 1 0 0 ]
[ 0 cos θ -sin θ ]
[ 0 sin θ cos θ ]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment