Rotate a 2D shape about a centre of rotation.