A simple Python package for working with geometry related operations. See documentation at gbox.readthedocs.io
pip install gbox
import 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
PointND
andPointArrayND
, instead of1D
,2D
,3D
etc.