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
Metadata
Release files for poverlap 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| poverlap-1.0.0.tar.gz | 6.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| poverlap-1.0.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 15.1 kB
Release files / poverlap-1.0.0.tar.gz
| Download URL | poverlap-1.0.0.tar.gz |
|---|---|
| Size | 6.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
206ec36b80b30696def5b7aed9f207240ed1790e8bad0deb662c14cb2e67e03d
|
|
BLAKE2b-256 checksum How to use checksums |
e82d477f715a009a8f1c2c2651c0ae35854babf3e63553fa7c5d348bcbc9a6d1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.5
|
Release files / poverlap-1.0.0-py3-none-any.whl
| Download URL | poverlap-1.0.0-py3-none-any.whl |
|---|---|
| Size | 8.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ab55daa1f8efc0f59c66f9c9dc302ed9e06b804e6c2be8ca7c6808bcd1db89fb
|
|
BLAKE2b-256 checksum How to use checksums |
3dade75ff4e0c55ca11287ebe1e8e46beba43d12b74b2d9340399da78f31b1d1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.5
|