Skip to content

Commit

Permalink
correct zone position
Browse files Browse the repository at this point in the history
  • Loading branch information
alwex committed May 29, 2015
1 parent d5a4bd8 commit 9d67ddf
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/main/java/com/alwex/tree/QuadTree.java
Original file line number Diff line number Diff line change
Expand Up @@ -73,14 +73,14 @@ private void split() {

regions[REGION_NW] = new QuadTree<T>(new QuadRectangle(
zone.x,
zone.height / 2,
zone.y + zone.height / 2,
newWidth,
newHeight
), newLevel);

regions[REGION_NE] = new QuadTree<T>(new QuadRectangle(
zone.width / 2,
zone.height / 2,
zone.x + zone.width / 2,
zone.y + zone.height / 2,
newWidth,
newHeight
), newLevel);
Expand All @@ -93,7 +93,7 @@ private void split() {
), newLevel);

regions[REGION_SE] = new QuadTree<T>(new QuadRectangle(
zone.width / 2,
zone.x + zone.width / 2,
zone.y,
newWidth,
newHeight
Expand Down

0 comments on commit 9d67ddf

Please sign in to comment.