From 353d742c4603bad9e90ce0d96bcf6ee572eae5e7 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Alexis=20Laferri=C3=A8re?= Date: Thu, 18 May 2017 12:52:26 -0700 Subject: [PATCH] geometry: make the attributes of points optional MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Alexis Laferrière --- lib/geometry/points_and_lines.nit | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/geometry/points_and_lines.nit b/lib/geometry/points_and_lines.nit index 3dc158a..eef5606 100644 --- a/lib/geometry/points_and_lines.nit +++ b/lib/geometry/points_and_lines.nit @@ -88,8 +88,8 @@ end class Point[N: Numeric] super IPoint[N] - redef var x: N is writable - redef var y: N is writable + redef var x: N = 0.0 is writable, optional + redef var y: N = 0.0 is writable, optional end # 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 is writable + redef var z: N = 0.0 is writable, optional end # Abstract 2D line segment between two ordered points -- 1.7.9.5