Checks for intersection between the Line and a Rectangle shape, and returns the intersection points as a Point object array.
The Line to check for intersection.
The Rectangle to check for intersection.
Optional
An optional array of Vector2 objects in which to store the points of intersection.
Checks for intersection between the Line and a Rectangle shape, and returns the intersection points as a Point object array.