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

Method random

src/test/java/com/github/davidmoten/rtree/RTreeTest.java:1123–1128  ·  view source on GitHub ↗
(Precision precision)

Source from the content-addressed store, hash-verified

1121 }
1122
1123 static Rectangle random(Precision precision) {
1124 if (precision == Precision.SINGLE)
1125 return r((float) Math.random() * 1000, (float) Math.random() * 1000);
1126 else
1127 return r(Math.random() * 1000, Math.random() * 1000);
1128 }
1129
1130 @Test
1131 public void testSearchGreekEarthquakesDouble() {

Callers 4

randomEntryMethod · 0.95
insertRectangleMethod · 0.95
nextPointMethod · 0.80
insertPointMethod · 0.80

Calls 1

rMethod · 0.95

Tested by

no test coverage detected