An open API service indexing awesome lists of open source software.

https://github.com/brauxo/intersect-rectangle

A small program to check if 2 rectangle are intersect in Python.
https://github.com/brauxo/intersect-rectangle

intersect python python-3 rectangles

Last synced: 2 months ago
JSON representation

A small program to check if 2 rectangle are intersect in Python.

Awesome Lists containing this project

README

        

# intersect-rectangle
This code create 2 random rectangles (1x1 is minimum and 20x20 is the maximum) and check if the rectangles are intersect by using their centers and show the 2D result using matplotlib
The rectangle are created with (x,y,width,height) in mind (x and y are the coordinates of the left down corner rectangle).

Note : this is not the best method to do it. Jupyter Notebook was used.