X-Git-Url: http://git.tomasm.cz/imago.git/blobdiff_plain/ecc0929cb0e011db2825e79d7495d7ef7b113e1e..2e09f5b5e012d70ed2d4341d40fe3a01bda68165:/imago_pack/geometry.py?ds=sidebyside diff --git a/imago_pack/geometry.py b/imago_pack/geometry.py index 23f4095..f324692 100644 --- a/imago_pack/geometry.py +++ b/imago_pack/geometry.py @@ -1,8 +1,10 @@ -"""Imago geometry module""" +"""Imago geometry module.""" from math import sin, cos, atan, pi class V(object): + """Class for vector manipulation.""" + def __init__(self, x, y): self.x = x self.y = y @@ -38,6 +40,7 @@ class V(object): return V(-self.y, self.x) def projection(p, l, v): + #TODO what is this? return V(*intersection(line(p, p + v.normal), line(*l))) def l2ad((a, b), size):