Expand description
S2 Coordinates internal methods
Constants§
- K_
FACE_ UVW_ AXES - The precomputed neighbors of each face (see GetUVWFace).
- K_
FACE_ UVW_ FACES - The U,V,W axes for each face.
- K_
IJTO_ POS - kIJtoPos[orientation][ij] -> pos
- K_
INVERT_ MASK - ‘kInvertMask’ is true, then the traversal order is rotated by 180 degrees (i.e. the bits of i and j are inverted, or equivalently, the axis directions are reversed).
- K_
POS_ TO_ IJ - kPosToIJ[orientation][pos] -> ij
- K_
POS_ TO_ ORIENTATION - kPosToOrientation[pos] -> orientation_modifier
- K_
SWAP_ MASK - Together these flags define a cell orientation. If ‘kSwapMask’ is true, then canonical traversal order is flipped around the diagonal (i.e. i and j are swapped with each other). If
- LOOKUP_
IJ - [1 << (2 * kLookupBits + 2)]u16;
- LOOKUP_
POS - [1 << (2 * kLookupBits + 2)]u16;