Java com.google.common.geometry S2CellId fields, constructors, methods, implement or subclass

Example usage for Java com.google.common.geometry S2CellId fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for com.google.common.geometry S2CellId.

The text is from its open source code.

Field

intNUM_FACES
intMAX_LEVEL
longid
The id of the cell.

Constructor

Method

S2CellIdbegin(int level)
S2CellIdchildBegin()
S2CellIdchildEnd()
intchildPosition(int level)
Return the child position (0..3) of this cell's ancestor at the given level, relative to its parent.
S2CellIdend(int level)
intface()
Which cube face this cell belongs to, in the range 0..5.
S2CellIdfromFacePosLevel(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).
S2CellIdfromLatLng(S2LatLng ll)
Return the leaf cell containing the given S2LatLng.
S2CellIdfromPoint(S2Point p)
Return the leaf cell containing the given point (a direction vector, not necessarily unit length).
booleanisLeaf()
Return true if this is a leaf cell (more efficient than checking whether level() == MAX_LEVEL).
intlevel()
Return the subdivision level of the cell (range 0..MAX_LEVEL).
S2CellIdparent(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).
S2CellIdrangeMax()
S2CellIdrangeMin()
S2LatLngtoLatLng()
Return the S2LatLng corresponding to the center of the given cell.