Skip to content

smidm/shape

Repository files navigation

Build Status

shape is a Python package for 2D shapes handling.

Features

  • objects:
    • abstract shape
    • point
    • polygon
    • bounding box
    • rotated bounding box
    • ellipse
  • relations: intersection, closeness
  • manipulation: move and rotate
  • visualization using matplotlib

Installation

pip install shape

Documentation

See tests for now.

Alternatives

https://github.com/varunagrawal/bbox

  • bounding box only
  • lightweight

https://github.com/shapely/shapely

  • complex
  • based on C++ GEOS library

About

2D shapes abstraction Python package

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published