A Java application that analyzes relationships between rectangles, including containment, adjacency classification, and intersection detection.
- Java 21
- Maven 3.9+ (or use the maven wrapper)
- Determine whether one rectangle contains another
- Classify adjacency between rectangles (PROPER, PARTIAL, SUBLINE, NONE)
- Compute intersection region for overlapping rectangles
- Rectangles are defined by two points with non-zero width and height
- Containment is inclusive (identical rectangles are considered contained)
- Adjacency requires a shared boundary with positive length
- Intersection is defined as overlapping area only (shared edges or points are not considered intersections)
./mvnw test./mvnw package