diff options
| author | Lex Neva <github.com@lexneva.name> | 2018-07-15 20:15:35 -0400 |
|---|---|---|
| committer | Lex Neva <github.com@lexneva.name> | 2018-07-25 21:17:58 -0400 |
| commit | dbcbf7cff1c8e76a2715d939818124c33cb5fa1e (patch) | |
| tree | c26e9abc262fa82d7479ad17112975b410049ab4 /lib/utils | |
| parent | 04ab1c4ae9a7cc9d282a04977ce840bf93e2120c (diff) | |
switch to pyembroidery for file generation
Diffstat (limited to 'lib/utils')
| -rw-r--r-- | lib/utils/geometry.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/utils/geometry.py b/lib/utils/geometry.py index 7ff9b1cd..d0cb96cf 100644 --- a/lib/utils/geometry.py +++ b/lib/utils/geometry.py @@ -65,6 +65,9 @@ class Point: else: raise ValueError("cannot multiply Point by %s" % type(other)) + def __neg__(self): + return self * -1 + def __rmul__(self, other): if isinstance(other, (int, float)): return self.__mul__(other) |
