Skip to content
/ twod Public

A Two-Dimensional Geometry Library for Humans™

License

Notifications You must be signed in to change notification settings

JnyJny/twod

Repository files navigation

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