Skip to main content

Sorry for any inconvenience, I got a little ahead of myself. Now this package is compatible with Python >= 2.7, everything else is the same. Also regenerated the HTML docs in a more user friendly way. (you can see them online here: http://pythonhosted.org/Geo2D/)

Launchpad project: Geo2D-Launchpad

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 Geo2D (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 geo2d.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 and http://pythonhosted.org/Geo2D/.

Release files for Geo2D 0.1.22

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for Geo2D 0.1.22
File Size Uploaded
Geo2D-0.1.22.tar.gz 18.4 kB Details

Release files / Geo2D-0.1.22.tar.gz

Download URL Geo2D-0.1.22.tar.gz
Size 18.4 kB
Tags Source
SHA-256 checksum
How to use checksums
92e2da875f89169ba78420d89f69366db305428f2f334a565450f454f3c7131a
BLAKE2b-256 checksum
How to use checksums
1d034a57e0b70ba491caed2804de2ceb0abae2e517e337a5e7933efcca2c50bd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.1.22 This release

1 release file

0.1.21

1 release file

0.1.11

1 release file

0.1.02

1 release file

0.1.1

1 release file

0.1.01

1 release file

0.1.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page