Hardcore maths!
I was looking to get a moveable line. Did you squeeze a rect and rotate it?