Point Overlapping With Any 2D Shape
Project description
POVERLAP
POverlap or Point Overlap is pure python library For Check Overlapping or Colliding 2D Point With Any 2D Shape. And Work Everywhere.
Installation
Install library like other library use pip package manager.
pip install poverlap
py -m pip install poverlap
Usage
First Importing poverlap Package
import poverlap
then use any function you needed
point_a = (10, 200)
point_b = (30, 100)
pdp: float = poverlap.point_distance(point_a, point_b)
pop: bool = poverlap.point_point(point_a, point_b)
pop_area: bool = poverlap.point_point_add_area(point_a, point_b, 5.5)
Some Detail
All Overlapping Point Algorithm in One File and Any File Fully NoDepended Can Use One File From poverlap in your app without need anything else.
TypeAliases Mean:
# in point_point.py
T_X: TypeAlias = int | float
T_Y: TypeAlias = int | float
T_POINT: TypeAlias = tuple[T_X, T_Y], list[T_X, T_Y]
# added in point_line.py
T_LINE: TypeAlias = tuple[T_POINT, T_POINT], list[T_POINT, T_POINT]
# added in point_rectangle.py
T_W: TypeAlias = int | float
T_H: TypeAlias = int | float
T_POSITION: TypeAlias = T_POINT
T_SIZE: TypeAlias = tuple[T_W, T_H], list[T_W, T_H]
# added in point_circle.py
T_RADIUS: TypeAlias = int |float
# added in point_polygon.py
T_POLYGON: TypeAlias = tuple[T_POSITION], list[T_POSITION]
Some of Function Name Ended With _add_area() like point_point_add_area() this means u can Use for Bigger or Some Bigger and Smaller Area for Detection Overlapping.
License
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file poverlap-1.0.0.tar.gz.
File metadata
- Download URL: poverlap-1.0.0.tar.gz
- Upload date:
- Size: 6.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
206ec36b80b30696def5b7aed9f207240ed1790e8bad0deb662c14cb2e67e03d
|
|
| MD5 |
c590ce1ac22fba0c95da6580a448879f
|
|
| BLAKE2b-256 |
e82d477f715a009a8f1c2c2651c0ae35854babf3e63553fa7c5d348bcbc9a6d1
|
File details
Details for the file poverlap-1.0.0-py3-none-any.whl.
File metadata
- Download URL: poverlap-1.0.0-py3-none-any.whl
- Upload date:
- Size: 8.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ab55daa1f8efc0f59c66f9c9dc302ed9e06b804e6c2be8ca7c6808bcd1db89fb
|
|
| MD5 |
02fdb1ab7611ebab18c709eae6490d5e
|
|
| BLAKE2b-256 |
3dade75ff4e0c55ca11287ebe1e8e46beba43d12b74b2d9340399da78f31b1d1
|