tuikit/core/coords.py
changeset 108 11dac45bfba4
parent 107 1822c37b2688
child 115 b4ff7392003a
--- a/tuikit/core/coords.py	Wed Sep 03 08:57:06 2014 +0200
+++ b/tuikit/core/coords.py	Wed Sep 03 08:57:24 2014 +0200
@@ -107,6 +107,9 @@
     def y(self):
         return self._y
 
+    def moved(self, relx, rely):
+        return ImmutablePoint(self.x + relx, self.y + rely)
+
     def __getitem__(self, key):
         return (self.x, self.y)[key]