Rotate segment over a certain angle