public final class S2CellId extends Object implements Comparable<S2CellId>
| Modifier and Type | Field and Description |
|---|---|
static int |
FACE_BITS |
static int |
MAX_LEVEL |
static int |
MAX_SIZE |
static long |
MAX_UNSIGNED |
static int |
NUM_FACES |
static int |
POS_BITS |
public static final int FACE_BITS
public static final int NUM_FACES
public static final int MAX_LEVEL
public static final int POS_BITS
public static final int MAX_SIZE
public static final long MAX_UNSIGNED
public static S2CellId none()
public static S2CellId sentinel()
public static S2CellId fromFacePosLevel(int face, long pos, int level)
public S2Point toPoint()
public S2Point toPointRaw()
public S2LatLng toLatLng()
public long id()
public boolean isValid()
public int face()
public long pos()
public int level()
public boolean isLeaf()
public boolean isFace()
public int childPosition(int level)
public S2CellId rangeMin()
public S2CellId rangeMax()
public boolean contains(S2CellId other)
public boolean intersects(S2CellId other)
public S2CellId parent()
public S2CellId parent(int level)
public S2CellId childBegin()
public S2CellId childBegin(int level)
public S2CellId childEnd()
public S2CellId childEnd(int level)
public S2CellId next()
public S2CellId prev()
public S2CellId nextWrap()
public S2CellId prevWrap()
public static S2CellId begin(int level)
public static S2CellId end(int level)
public String toToken()
public void getEdgeNeighbors(S2CellId[] neighbors)
public static S2CellId fromFaceIJ(int face, int i, int j)
public int toFaceIJOrientation(MutableInteger pi, MutableInteger pj, MutableInteger orientation)
public long lowestOnBit()
public static long lowestOnBitForLevel(int level)
public static S2CellId fromFaceIJSame(int face, int i, int j, boolean sameFace)
public boolean equals(Object that)
public static boolean unsignedLongLessThan(long x1,
long x2)
public static boolean unsignedLongGreaterThan(long x1,
long x2)
public boolean lessThan(S2CellId x)
public boolean greaterThan(S2CellId x)
public boolean lessOrEquals(S2CellId x)
public boolean greaterOrEquals(S2CellId x)
public int hashCode()
public String toString()
public int compareTo(S2CellId that)
Copyright © 2017. All rights reserved.