Lines Matching refs:S2CellId
51 public final strictfp class S2CellId implements Comparable<S2CellId> { class
112 public S2CellId(long id) { in S2CellId() method in S2CellId
116 public S2CellId() { in S2CellId() method in S2CellId
121 public static S2CellId none() { in none()
122 return new S2CellId(); in none()
129 public static S2CellId sentinel() { in sentinel()
130 return new S2CellId(MAX_UNSIGNED); // -1 in sentinel()
140 public static S2CellId fromFacePosLevel(int face, long pos, int level) { in fromFacePosLevel()
141 return new S2CellId((((long) face) << POS_BITS) + (pos | 1)).parent(level); in fromFacePosLevel()
148 public static S2CellId fromPoint(S2Point p) { in fromPoint()
158 public static S2CellId fromLatLng(S2LatLng ll) { in fromLatLng()
302 public S2CellId rangeMin() { in rangeMin()
303 return new S2CellId(id - (lowestOnBit() - 1)); in rangeMin()
306 public S2CellId rangeMax() { in rangeMax()
307 return new S2CellId(id + (lowestOnBit() - 1)); in rangeMax()
312 public boolean contains(S2CellId other) { in contains()
318 public boolean intersects(S2CellId other) { in intersects()
324 public S2CellId parent() { in parent()
327 return new S2CellId((id & -newLsb) | newLsb); in parent()
334 public S2CellId parent(int level) { in parent()
337 return new S2CellId((id & -newLsb) | newLsb); in parent()
340 public S2CellId childBegin() { in childBegin()
343 return new S2CellId(id - oldLsb + (oldLsb >>> 2)); in childBegin()
346 public S2CellId childBegin(int level) { in childBegin()
348 return new S2CellId(id - lowestOnBit() + lowestOnBitForLevel(level)); in childBegin()
351 public S2CellId childEnd() { in childEnd()
354 return new S2CellId(id + oldLsb + (oldLsb >>> 2)); in childEnd()
357 public S2CellId childEnd(int level) { in childEnd()
359 return new S2CellId(id + lowestOnBit() + lowestOnBitForLevel(level)); in childEnd()
380 public S2CellId next() { in next()
381 return new S2CellId(id + (lowestOnBit() << 1)); in next()
389 public S2CellId prev() { in prev()
390 return new S2CellId(id - (lowestOnBit() << 1)); in prev()
399 public S2CellId nextWrap() { in nextWrap()
400 S2CellId n = next(); in nextWrap()
404 return new S2CellId(n.id - WRAP_OFFSET); in nextWrap()
412 public S2CellId prevWrap() { in prevWrap()
413 S2CellId p = prev(); in prevWrap()
417 return new S2CellId(p.id + WRAP_OFFSET); in prevWrap()
421 public static S2CellId begin(int level) { in begin()
425 public static S2CellId end(int level) { in end()
439 public static S2CellId fromToken(String token) { in fromToken()
465 return new S2CellId(value); in fromToken()
557 public void getEdgeNeighbors(S2CellId neighbors[]) { in getEdgeNeighbors()
586 public void getVertexNeighbors(int level, List<S2CellId> output) { in getVertexNeighbors()
640 public void getAllNeighbors(int nbrLevel, List<S2CellId> output) { in getAllNeighbors()
691 public static S2CellId fromFaceIJ(int face, int i, int j) { in fromFaceIJ()
719 S2CellId s = new S2CellId((((n[1] << 32) + n[0]) << 1) + 1); in fromFaceIJ()
850 private static S2CellId fromFaceIJWrap(int face, int i, int j) { in fromFaceIJWrap()
876 public static S2CellId fromFaceIJSame(int face, int i, int j, in fromFaceIJSame()
879 return S2CellId.fromFaceIJ(face, i, j); in fromFaceIJSame()
881 return S2CellId.fromFaceIJWrap(face, i, j); in fromFaceIJSame()
887 if (!(that instanceof S2CellId)) { in equals()
890 S2CellId x = (S2CellId) that; in equals()
908 public boolean lessThan(S2CellId x) { in lessThan()
912 public boolean greaterThan(S2CellId x) { in greaterThan()
916 public boolean lessOrEquals(S2CellId x) { in lessOrEquals()
920 public boolean greaterOrEquals(S2CellId x) { in greaterOrEquals()
958 public int compareTo(S2CellId that) { in compareTo()