This little app finds the intersection, containment and adjacency between two rectangles
This app calculates if two rectangles are in intersection, containment, or adjacency. The main idea is find the topRight and the bottomLeft with their points [x,y] where you can find out the collision between each other and identify which one is the corresponding intersection, containment or adjacency.
Check the below image:
- Install Java Download the latest version for Windows Open JDK website
- Open CMD on Windows and run mvn clean install. You must have manven installed in your local computer.
You should see something like this:
- You can also run the main.java has just examples.