Function pointRotate