Rotation matrices

Rotation about any axis is a linear transformation. Any linear transformation can be expressed using a matrix. To represent a three-dimensional rotation we need a 3 X 3 or a 4 X 4 matrix. In this section, we are going to derive a matrix that represents rotation around the Z-Axis by some angle theta. This matrix will be used to transform a vector Rotation matrices into a rotated version of that vector, Rotation matrices.The new vector will be the result of rotating the original vector around the Z-Axis. After we derive the matrix which rotates around the Z-Axis, rotation ...

Get Game Physics Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.