3 ms·
From the slides: Clipping an axis-aligned rectangle to another axis-aligned rectangle produces at most one axis-aligned rectangle. What if the object
by CamperBob2 10y ago
From the slides:
Clipping an axis-aligned rectangle to another axis-aligned
rectangle produces at most one axis-aligned rectangle.
What if the object in front overlaps only one corner of the one in back? That results in two rectangles.
Or if it's entirely within the outer rect...?
- pcwalton 10y agoClipping in (intersection), not clipping out (difference).