Part of the materials review what you (may have) learned.

Keywords: Matrix. Rotation. Homogeneous coordinates. Quaternion.

Read Chapter 4.1~4.3 in your text book

Here is the lecture note 3 in PDF

Here is the lecture note 4 in PDF (includes more details on Quaternion and dual Quaternion!!)

Here is the source code Δ of the demo (Matrix vs. Quaternion) in 7z