Skip to main content

A two-dimensional geometry library for humans.

Project description

twod - A Two-Dimensional Geometry Library for Humans™

version pytest license monthly-downloads Code style: black

twod (pronounced "two dee") is a geometry library that supplies simple two-dimensional geometric primtives:

  • twod.Point
  • twod.Rect


Installing twod is a snap!

$ python3 -m pip install -U twod

Development Workflow

$ git clone
$ cd twod
$ poetry shell
(twod-...) $ 

Usage Exmaples

from twod import Point

o = Point()
b = Point.from_polar(10, 0)
assert b.distance(o) == 10.0

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

twod-0.2.9.tar.gz (11.3 kB view hashes)

Uploaded source

Built Distribution

twod-0.2.9-py3-none-any.whl (11.9 kB view hashes)

Uploaded py3

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