nitlanguage
/
nit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0be4711
)
lib/geometry: points attributes are writable
author
Alexis Laferrière
<alexis.laf@xymus.net>
Tue, 29 Sep 2015 20:48:27 +0000
(16:48 -0400)
committer
Alexis 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
patch
|
blob
|
history
diff --git
a/lib/geometry/points_and_lines.nit
b/lib/geometry/points_and_lines.nit
index
f1efc72
..
cf5d0f8
100644
(file)
--- 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
- 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