A simple Python package for working with geometry related operations. See documentation at gbox.readthedocs.io
pip install gboximport gbox
# Create a 2D point
from gbox import Point2D
point = Point2D(1.0, 2.0)
# Create a Cirle with center at point and radius 5.0
from gbox import Circle
circle = Circle(5.0, point)- Implement
__hash__and__eq__for using points in sets and dicts - Stick to numpy for now. Try with Numba in later releases.
- Use just
PointNDandPointArrayND, instead of1D,2D,3Detc.
Started using uv for Python Package and Project management.
uv syncuv add package==versionuv add --group dev-dependencies dev-package==versionuv run --group dev-dependencies pytest --cov=gbox tests/Check uv's documentation for more details