From 7757c307875de726f635f5b2fb098d01c6d46905 Mon Sep 17 00:00:00 2001 From: Jean Privat Date: Thu, 9 Apr 2015 20:30:54 +0700 Subject: [PATCH] quatree: cleaup indentation Signed-off-by: Jean Privat --- lib/geometry/quadtree.nit | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/geometry/quadtree.nit b/lib/geometry/quadtree.nit index 8c2df3c..089b6ee 100644 --- a/lib/geometry/quadtree.nit +++ b/lib/geometry/quadtree.nit @@ -56,10 +56,10 @@ abstract class QuadTree[E: Boxed[Numeric]] end redef fun items_overlapping(region :Boxed[Numeric]): SimpleCollection[E] do - var res = new Array[E] - items_overlapping_in(region,res) - return res - end + var res = new Array[E] + items_overlapping_in(region,res) + return res + end # add the item to the tree, create children if the limit is reached redef fun add(item: E) do if self.is_leaf then self.data.add(item) else add_to_children(item) @@ -86,7 +86,7 @@ abstract class QuadTree[E: Boxed[Numeric]] else if self.center.y > item.top then self.data.add(item) else if self.center.y < item.bottom then - self.data.add(item) + self.data.add(item) else self.data.add(item) end @@ -209,7 +209,7 @@ end # the center of the parent node class SQuadTree[E: Boxed[Numeric]] super QuadTree[E] - + # the width of the current node of the QuadTree var width: Numeric # the height of the current node of the QuadTree -- 1.7.9.5