reorder split rectangles
authoralfadur
Sat, 03 Nov 2018 07:52:34 +0300
changeset 14112 f04bc39f0c05
parent 14111 269f13ac670d
child 14113 be4419243735
reorder split rectangles
rust/integral-geometry/src/lib.rs
--- a/rust/integral-geometry/src/lib.rs	Sat Nov 03 07:31:35 2018 +0300
+++ b/rust/integral-geometry/src/lib.rs	Sat Nov 03 07:52:34 2018 +0300
@@ -354,8 +354,8 @@
         [
             Rect::from_box(self.left(), point.x, self.top(), point.y),
             Rect::from_box(point.x, self.right(), self.top(), point.y),
-            Rect::from_box(self.left(), point.x, point.y, self.bottom()),
-            Rect::from_box(point.x, self.right(), point.y, self.bottom())
+            Rect::from_box(point.x, self.right(), point.y, self.bottom()),
+            Rect::from_box(self.left(), point.x, point.y, self.bottom())
         ]
     }
 }