In this Demonstration you can rotate a square, a triangle, or the letter L about the point in the plane, choosing the coordinates with the "translation by " sliders or by dragging the point in the graphic. Change the angle to see the rotation about the point. The matrix of the rotation is given by the product of three operations (from right to left): translation by , rotation around the origin, and translation back by .

This Demonstration illustrates how to rotate a 2D graphical object about a point in . This can be done by composition of three matrices applied to the object described in Homogeneous Coordinates. The rotation about can be achieved by first translating the figure by with the matrix , rotating about the origin by with the matrix , where , and finally translating back to with the matrix .