MCPcopy Create free account
hub / github.com/davidmoten/rtree / create

Method create

src/test/java/com/github/davidmoten/rtree/RTreeTest.java:474–479  ·  view source on GitHub ↗
(int maxChildren, int n)

Source from the content-addressed store, hash-verified

472 }
473
474 private static RTree<Object, Rectangle> create(int maxChildren, int n) {
475 RTree<Object, Rectangle> tree = RTree.maxChildren(maxChildren).create();
476 for (int i = 1; i <= n; i++)
477 tree = tree.add(e(i));
478 return tree;
479 }
480
481 @Test
482 public void testNearestSameDirection() {

Calls 3

maxChildrenMethod · 0.95
eMethod · 0.95
addMethod · 0.65

Tested by

no test coverage detected