Home
last modified time | relevance | path

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

/external/s2-geometry-library-java/src/com/google/common/geometry/
DS2CellUnion.java91 public S2CellId cellId(int i) { in cellId() method in S2CellUnion
283 S2CellId imin = x.cellId(i).rangeMin(); in getIntersection()
284 S2CellId jmin = y.cellId(j).rangeMin(); in getIntersection()
287 if (x.cellId(i).lessOrEquals(y.cellId(j).rangeMax())) { in getIntersection()
288 cellIds.add(x.cellId(i++)); in getIntersection()
293 if (x.cellId(i).lessOrEquals(y.cellId(j - 1).rangeMax())) { in getIntersection()
299 if (y.cellId(j).lessOrEquals(x.cellId(i).rangeMax())) { in getIntersection()
300 cellIds.add(y.cellId(j++)); in getIntersection()
303 if (y.cellId(j).lessOrEquals(x.cellId(i - 1).rangeMax())) { in getIntersection()
309 if (x.cellId(i).lessThan(y.cellId(j))) { in getIntersection()
[all …]
DS2Cell.java33 S2CellId cellId; field in S2Cell
66 return cellId; in id()
134 if (cellId.isLeaf()) { in subdivide()
142 S2CellId id = cellId.childBegin(); in subdivide()
148 child.cellId = id; in subdivide()
172 return cellId.toPointRaw(); in getCenterRaw()
184 cellId.toFaceIJOrientation(i, j, null); in getCenterUV()
360 return cellId.intersects(cell.cellId); in mayIntersect()
378 return cellId.contains(cell.cellId); in contains()
382 cellId = id; in init()
[all …]
DS2EdgeIndex.java115 for (S2CellId cellId : cover) { in computeIndex()
116 cellList.add(cellId.id()); in computeIndex()
/external/s2-geometry-library-java/tests/com/google/common/geometry/
DS2CellUnionTest.java42 assertEquals(face1Id, face1Union.cellId(0)); in testBasic()
50 assertEquals(face2Id, face2Union.cellId(0)); in testBasic()
81 for (S2CellId cellId : union) { in testContainsCellUnion()
82 parents.add(cellId.parent()); in testContainsCellUnion()
185 assertTrue(cap.contains(new S2Cell(cellunion.cellId(k)))); in testNormalize()
249 S2CellId yId = yCells.cellId(j); in testNormalize()
253 S2CellId xId = xCells.cellId(k); in testNormalize()
256 assertEquals(yId, u.cellId(0)); in testNormalize()
265 assertTrue(xCells.contains(u.cellId(k))); in testNormalize()
266 assertTrue(yId.contains(u.cellId(k))); in testNormalize()
[all …]
DS2RegionCovererTest.java37 assertEquals(covering.cellId(0), id); in testRandomCells()