lib/geometry: points attributes are writable
authorAlexis Laferrière <alexis.laf@xymus.net>
Tue, 29 Sep 2015 20:48:27 +0000 (16:48 -0400)
committerAlexis Laferrière <alexis.laf@xymus.net>
Sun, 4 Oct 2015 17:45:42 +0000 (13:45 -0400)
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>

lib/geometry/points_and_lines.nit

index f1efc72..cf5d0f8 100644 (file)
@@ -88,8 +88,8 @@ end
 class Point[N: Numeric]
        super IPoint[N]
 
-       redef var x: N
-       redef var y: N
+       redef var x: N is writable
+       redef var y: N is writable
 end
 
 # An abstract 3d point, strongly linked to its implementation `Point3d`
@@ -107,7 +107,7 @@ class Point3d[N: Numeric]
        super IPoint3d[N]
        super Point[N]
 
-       redef var z: N
+       redef var z: N is writable
 end
 
 # An abstract 2d line segment