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.
- Host: GitHub
- URL: https://github.com/brauxo/intersect-rectangle
- Owner: Brauxo
- Created: 2023-10-05T14:26:09.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-10-05T15:39:32.000Z (over 1 year ago)
- Last Synced: 2025-01-22T04:18:18.812Z (4 months ago)
- Topics: intersect, python, python-3, rectangles
- Language: Jupyter Notebook
- Homepage:
- Size: 14.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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.