summaryrefslogtreecommitdiff
path: root/lib/utils/geometry.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib/utils/geometry.py')
-rw-r--r--lib/utils/geometry.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/utils/geometry.py b/lib/utils/geometry.py
index 647636c8..bae32c32 100644
--- a/lib/utils/geometry.py
+++ b/lib/utils/geometry.py
@@ -63,6 +63,9 @@ class Point:
self.x = x
self.y = y
+ def __json__(self):
+ return vars(self)
+
def __add__(self, other):
return Point(self.x + other.x, self.y + other.y)