Returns the distance between a rectangle and a line.
The top-right, top-left, bottom-left, bottom-right points (in that order) of the rectangle.
The start point of the line
The end point of the line
The distance between the rectangle and the line
Returns the distance between a rectangle and a line.