Function lineRotate