Editorial question104.1K views4,296 votes0 answers1,384 following
AI-generatedLimits: Boundary inclusion in rect.Intersects and rect.Contains
The goal is to determine how the rect library defines containment and intersection when points lie exactly on the rectangle's edges or when two rectangles touch at an edge or corner. The library's source uses <= comparisons, suggesting edges are included, but the official documentation does not state this explicitly. Existing tests cover interior points b