Example usage for Java com.google.common.geometry S2CellId fields, constructors, methods, implement or subclass
The text is from its open source code.
S2CellId | begin(int level) |
S2CellId | childBegin() |
S2CellId | childEnd() |
int | childPosition(int level) Return the child position (0..3) of this cell's ancestor at the given level, relative to its parent. |
S2CellId | end(int level) |
int | face() Which cube face this cell belongs to, in the range 0..5. |
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). |
S2CellId | fromLatLng(S2LatLng ll) Return the leaf cell containing the given S2LatLng. |
S2CellId | fromPoint(S2Point p) Return the leaf cell containing the given point (a direction vector, not necessarily unit length). |
boolean | isLeaf() Return true if this is a leaf cell (more efficient than checking whether level() == MAX_LEVEL). |
int | level() Return the subdivision level of the cell (range 0..MAX_LEVEL). |
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 | rangeMax() |
S2CellId | rangeMin() |
S2LatLng | toLatLng() Return the S2LatLng corresponding to the center of the given cell. |