What is rotation?
A 2-D rotation is completed by repositioning the coordinates with a circular path, in the x-y plane by making an angle with the axes. The transformation is given by:
X = r cos (q + f) and Y = r sin (q + f).