I hope you can see the similarity between rotating in 3D and 2D: the x- and
y-coordinates are updated while the z -coordinate is held constant. We can now state the other two matrices for rotating about an axis parallel with the
x -axis and parallel with the y-axis: