A two-dimensional geometry library for humans.
Project description
twod - A Two-Dimensional Geometry Library for Humans™
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
Release history Release notifications | RSS feed
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)
Built Distribution
twod-0.2.9-py3-none-any.whl
(11.9 kB
view hashes)