Search code examples
python-3.xplotgeometrydrawing

Geometry module for Python


I am looking for a geometry module with similar feature as Geogebra for Python. I would like to, from a set of defined length calculates coordinates of points and some transformations such as rotation of x degrees, symmetrical from a point from some line, compute the intersection between a circle and whatever point, compute the perpendicular line to a segment, middle point etc. Then plot a polygon obtained by joining transformed points using let's say matplotlib.

Does such a module exist ? I could build it from scratch but having those features would save me much time.

Thank you so much.


Solution

  • You can use sympy for some of these, in particular the geometry module. Shapely is also pretty popular.