Applies a rotation to an object on the screen.
The axis of rotation can be specified using the pivot field. Otherwise a default axis of rotation is used.