Let's define the homogeneous transformation matrices for a 2D rotation and translation.
A 2D rotation matrix $R(\theta)$ for a rotation by an angle $\theta$ is:
$$R(\theta) = \begin{pmatrix} \cos\theta & -\sin\theta & 0 \\ \sin\theta & \cos\theta & 0 \\ 0 & 0 & 1
Show more…