imdiegoruiz / rectangle_example

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

rectangle_example

This little app finds the intersection, containment and adjacency between two rectangles

How it works

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:

castersian example

Running the app

  • 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:

image

  • You can also run the main.java has just examples.

image

Thanks, code developed by Diego F. Ruiz

About

License:MIT License


Languages

Language:Java 100.0%