move PVRotate function to lib