Rotation transformation

Another useful transformation is the rotation of a drawing about a pivot point. Consider Point P1 (40, 20) can be seen being rotated about the origin through an angle 45, in the anti-clockwise direction to position P2. The co-ordinates of P2 can be obtained by multiplying the co-ordinates of P1 by the matrix: