Skip to main content

Pure Python (3 compatible) geometry package.

Project description

This package has come to life from the need of a (pure) Python geometry package (Python 3 compatbile) for my pet project(s). I didn’t find a satisfactory Python package/module for my needs so… here comes Goe2D (which is by no means state of the art… it just does what I hope it would do and it doesn’t have any dependencies except for the standard Python library). Stating that, it includes only these classes:

  • Point

  • Vector

  • Line

  • Ray

  • Segment

  • Polygon

Example:

#!/usr/bin/env python

import geometry as g

p1 = g.Point((0, 1)) p2 = g.Point((4.2, 5)) print(p1.distance_to(p2)) l = g.Segment(p1, p2)

And so on. More details about the technical stuff is in the docs/html.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

Geo2D-0.1.0.tar.gz (18.7 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page