/external/s2-geometry-library-java/tests/com/google/common/geometry/ |
D | S2CellUnionTest.java | 37 S2CellId face1Id = S2CellId.fromFacePosLevel(1, 0, 0); in testBasic() 44 S2CellId face2Id = S2CellId.fromFacePosLevel(2, 0, 0); in testBasic() 104 addCells(S2CellId.fromFacePosLevel(face, 0, 0), false, input, expected); in addCells() 362 ids.add(S2CellId.fromFacePosLevel( in testLeafCellsCovered() 370 ids.add(S2CellId.fromFacePosLevel(0, 0, 0)); in testLeafCellsCovered() 383 ids.add(S2CellId.fromFacePosLevel(1, 0, 1)); in testLeafCellsCovered() 384 ids.add(S2CellId.fromFacePosLevel(2, 0, 2)); in testLeafCellsCovered() 385 ids.add(S2CellId.fromFacePosLevel(2, (1L << 60), 2)); in testLeafCellsCovered() 386 ids.add(S2CellId.fromFacePosLevel(3, 0, 14)); in testLeafCellsCovered() 387 ids.add(S2CellId.fromFacePosLevel(4, (1L << 60), 15)); in testLeafCellsCovered() [all …]
|
D | S2CellIdTest.java | 46 id = S2CellId.fromFacePosLevel(3, 0x12345678, S2CellId.MAX_LEVEL - 4); in testBasic() 78 S2CellId.fromFacePosLevel(5, ~0L >>> S2CellId.FACE_BITS, S2CellId.MAX_LEVEL)); in testBasic() 82 S2CellId.fromFacePosLevel(0, 0, S2CellId.MAX_LEVEL)); in testBasic() 160 expandCell(S2CellId.fromFacePosLevel(face, 0, 0), cells, parentMap); in testContainment() 254 S2CellId.fromFacePosLevel(1, 0, 0).getEdgeNeighbors(faceNbrs); in testNeighbors() 271 S2CellId id = S2CellId.fromFacePosLevel(0, 0, S2CellId.MAX_LEVEL); in testNeighbors() 275 assertEquals(nbrs.get(0), S2CellId.fromFacePosLevel(0, 0, 0)); in testNeighbors() 276 assertEquals(nbrs.get(1), S2CellId.fromFacePosLevel(4, 0, 0)); in testNeighbors() 277 assertEquals(nbrs.get(2), S2CellId.fromFacePosLevel(5, 0, 0)); in testNeighbors()
|
D | S2LatLngRectTest.java | 213 testCellOps(empty, S2Cell.fromFacePosLevel(3, (byte) 0, 0), 0); in testBasic() 214 testCellOps(full, S2Cell.fromFacePosLevel(2, (byte) 0, 0), 4); in testBasic() 215 testCellOps(full, S2Cell.fromFacePosLevel(5, (byte) 0, 25), 4); in testBasic() 220 testCellOps(r4, S2Cell.fromFacePosLevel(0, (byte) 0, 0), 3); in testBasic() 221 testCellOps(r4, S2Cell.fromFacePosLevel(0, (byte) 0, 1), 4); in testBasic() 222 testCellOps(r4, S2Cell.fromFacePosLevel(1, (byte) 0, 1), 0); in testBasic() 226 testCellOps(r5, S2Cell.fromFacePosLevel(0, (byte) 0, 0), 3); in testBasic() 227 testCellOps(r5, S2Cell.fromFacePosLevel(0, (byte) 0, 1), 3); in testBasic() 228 testCellOps(r5, S2Cell.fromFacePosLevel(1, (byte) 0, 1), 0); in testBasic() 231 testCellOps(rectFromDegrees(4, 4, 4, 4), S2Cell.fromFacePosLevel(0, (byte) 0, 0), 3); in testBasic() [all …]
|
D | GeometryTestCase.java | 74 return S2CellId.fromFacePosLevel(face, pos, level); 110 checkCovering(region, covering, checkTight, S2CellId.fromFacePosLevel(face, 0, 0));
|
D | S2PolylineTest.java | 75 S2Cell cell = S2Cell.fromFacePosLevel(face, (byte) 0, 0);
|
D | S2CellTest.java | 31 S2CellId id = S2CellId.fromFacePosLevel(face, 0, 0); in testFaces() 350 testSubdivide(S2Cell.fromFacePosLevel(face, (byte) 0, 0)); in testSubdivide()
|
D | S2CapTest.java | 177 S2Cell rootCell = S2Cell.fromFacePosLevel(face, (byte) 0, 0); in testCells()
|
/external/s2-geometry-library-java/src/com/google/common/geometry/ |
D | S2Cell.java | 51 public static S2Cell fromFacePosLevel(int face, byte pos, int level) { in fromFacePosLevel() method in S2Cell 52 return new S2Cell(S2CellId.fromFacePosLevel(face, pos, level)); in fromFacePosLevel()
|
D | S2CellId.java | 140 public static S2CellId fromFacePosLevel(int face, long pos, int level) { in fromFacePosLevel() method in S2CellId 422 return fromFacePosLevel(0, 0, 0).childBegin(level); in begin() 426 return fromFacePosLevel(5, 0, 0).childEnd(level); in end()
|
D | S2RegionCoverer.java | 68 FACE_CELLS[face] = S2Cell.fromFacePosLevel(face, (byte) 0, 0);
|