I'm trying to numerically compute where an infinite line defined by two points intersects a (finite) rectangle also defined by two points. Here's a illustration of the various ways that the line can intersect the rectangle:
How can I determine the number and location of the places where the infinite line intersects the rectangle? I know how to do this when the line is finite, but I can't figure out how to generalize that to an infinite context.
2026-03-28 09:44:10.1774691050
Numerically compute intersection of infinite line and rectangle
287 Views Asked by Bumbble Comm https://math.techqa.club/user/bumbble-comm/detail At
1
Idea: find out on which side of the line the four corners lie