Ray intersection with a rectangle
The top-right, top-left, bottom-left, bottom-right points (in that order) of the rectangle
A point
A vector
The intersection point
Ray intersection with a rectangle