Normal at 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 unit normal at the intersection point
Normal at ray intersection with a rectangle