I have a line with coordinates $(a1, b1)$ and $(b2, b2)$. I want to calculate the $(x1, y1)$ and $(x2, y2)$ as shown in image below such that the line will form a rectangle. Given, I know the height of the rectangle, how what is the easiest way to calculate $(x1, y1)$ and $(x2, y2)$?
