static S2CellId |
S2CellId.begin(int level) |
|
S2CellId |
S2CellId.childBegin() |
|
S2CellId |
S2CellId.childBegin(int level) |
|
S2CellId |
S2CellId.childEnd() |
|
S2CellId |
S2CellId.childEnd(int level) |
|
static S2CellId |
S2CellId.end(int level) |
|
static S2CellId |
S2CellId.fromFaceIJ(int face,
int i,
int j) |
Return a leaf cell given its cube face (range 0..5) and i- and
j-coordinates (see s2.h).
|
static S2CellId |
S2CellId.fromFaceIJSame(int face,
int i,
int j,
boolean sameFace) |
Public helper function that calls FromFaceIJ if sameFace is true, or
FromFaceIJWrap if sameFace is false.
|
static S2CellId |
S2CellId.fromFacePosLevel(int face,
long pos,
int level) |
Return a cell given its face (range 0..5), 61-bit Hilbert curve position
within that face, and level (range 0..MAX_LEVEL).
|
static S2CellId |
S2CellId.fromLatLng(S2LatLng ll) |
Return the leaf cell containing the given S2LatLng.
|
static S2CellId |
S2CellId.fromPoint(S2Point p) |
Return the leaf cell containing the given point (a direction vector, not
necessarily unit length).
|
static S2CellId |
S2CellId.fromToken(String token) |
Decodes the cell id from a compact text string suitable for display or
indexing.
|
S2CellId |
S2CellId.next() |
Return the next cell at the same level along the Hilbert curve.
|
S2CellId |
S2CellId.nextWrap() |
Like next(), but wraps around from the last face to the first and vice
versa.
|
static S2CellId |
S2CellId.none() |
The default constructor returns an invalid cell id.
|
S2CellId |
S2CellId.parent() |
|
S2CellId |
S2CellId.parent(int level) |
Return the cell at the previous level or at the given level (which must be
less than or equal to the current level).
|
S2CellId |
S2CellId.prev() |
Return the previous cell at the same level along the Hilbert curve.
|
S2CellId |
S2CellId.prevWrap() |
Like prev(), but wraps around from the last face to the first and vice
versa.
|
S2CellId |
S2CellId.rangeMax() |
|
S2CellId |
S2CellId.rangeMin() |
|
static S2CellId |
S2CellId.sentinel() |
Returns an invalid cell id guaranteed to be larger than any valid cell id.
|