Skip to content

338rajesh/gbox

Repository files navigation

gbox:: Geometry Box

codecov Documentation Status Build Status

A simple Python package for working with geometry related operations. See documentation at gbox.readthedocs.io

Installation

pip install gbox

Usage

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)

Notes

  • 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 and PointArrayND, instead of 1D, 2D, 3D etc.

About

https://gbox.readthedocs.io

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages