Home
last modified time | relevance | path

Searched refs:averageArea (Results 1 – 5 of 5) sorted by relevance

/external/s2-geometry-library-java/tests/com/google/common/geometry/
DS2RegionCovererTest.java90 4 * S2.M_PI, (3 * coverer.maxCells() + 1) * S2Cell.averageArea(coverer.minLevel())); in testRandomCaps()
91 S2Cap cap = getRandomCap(0.1 * S2Cell.averageArea(kMaxLevel), maxArea); in testRandomCaps()
129 double maxArea = Math.min(4 * S2.M_PI, 1000 * S2Cell.averageArea(level)); in testSimpleCoverings()
130 S2Cap cap = getRandomCap(0.1 * S2Cell.averageArea(kMaxLevel), maxArea); in testSimpleCoverings()
DS2CellTest.java177 double averageArea = 0; in testSubdivide() local
181 averageArea += children[i].averageArea(); in testSubdivide()
302 assertTrue(Math.abs(Math.log(averageArea / cell.averageArea())) <= Math in testSubdivide()
378 s.maxApproxRatio, S2Cell.averageArea(i) / s.maxArea, S2Cell in testSubdivide()
379 .averageArea(i) in testSubdivide()
DS2CellUnionTest.java318 S2Cap cap = getRandomCap(S2Cell.averageArea(S2CellId.MAX_LEVEL), 4 * S2.M_PI); in testExpand()
407 double expected = S2Cell.averageArea(S2CellId.MAX_LEVEL) * (1L + (1L << 58)); in testAverageBasedArea()
/external/s2-geometry-library-java/src/com/google/common/geometry/
DS2Cell.java200 public static double averageArea(int level) { in averageArea() method in S2Cell
209 public double averageArea() { in averageArea() method in S2Cell
210 return averageArea(level); in averageArea()
223 return averageArea(level); in approxArea()
DS2CellUnion.java424 double area = S2Cell.averageArea(id.level()); in getCapBound()
499 return S2Cell.averageArea(S2CellId.MAX_LEVEL) * leafCellsCovered(); in averageBasedArea()