Thanks to visit codestin.com
Credit goes to github.com

Skip to content

JnyJny/twod

Repository files navigation

twod - A Two-Dimensional Geometry Library for Humans™

Test & Publish Version Release Date Python Version License Code Style: black Monthly Downloads

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 Examples

from twod import Point

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

Packages

No packages published

Contributors 3

  •  
  •  
  •