Calculates all intersections of the given box with the given curve.
X position of top left corner of box
Y position of top left corner of box
width of box
height of box
Array of intersecting points.
Calculates all intersections of the given box with the given curve.