public void createChildren() { children = new DividerTree[4]; float width = bounds.getWidth() / 2; float height = bounds.getHeight() / 2; for (int i = 0; i < 4; i++) { Coordinates topLeft = bounds.getTopLeft().add(height * (i % 2), width * (i / 2)); children[i] = new DividerTree(new Bounds(topLeft, topLeft.clone().add(height, width))); } };