move rotateLine() to line class