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

Install

Installing twod is a snap!

$ python3 -m pip install -U twod

Development Workflow

$ git clone https://github.com/JnyJny/twod.git
$ 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 Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page