MCPcopy
hub / github.com/golang/geo / CellIDFromFace

Function CellIDFromFace

s2/cellid.go:109–111  ·  view source on GitHub ↗

CellIDFromFace returns the cell corresponding to a given S2 cube face.

(face int)

Source from the content-addressed store, hash-verified

107
108// CellIDFromFace returns the cell corresponding to a given S2 cube face.
109func CellIDFromFace(face int) CellID {
110 return CellID((uint64(face) << PosBits) + lsbForLevel(0))
111}
112
113// CellIDFromLatLng returns the leaf cell containing ll.
114func CellIDFromLatLng(ll LatLng) CellID {

Callers 15

earth_test.goFile · 0.92
BuildMethod · 0.85
TestEncodeDecodeFunction · 0.85
getCellsForEdgeMethod · 0.85
TestCapContainsCellFunction · 0.85
TestCapIntersectsCellFunction · 0.85
CellUnionBoundMethod · 0.85
TestCellIDFromFaceFunction · 0.85
TestCellIDFromStringFunction · 0.85

Calls 2

CellIDTypeAlias · 0.85
lsbForLevelFunction · 0.85

Tested by 15

TestEncodeDecodeFunction · 0.68
TestCapContainsCellFunction · 0.68
TestCapIntersectsCellFunction · 0.68
TestCellIDFromFaceFunction · 0.68
TestCellIDFromStringFunction · 0.68
TestCellIDWrappingFunction · 0.68
TestCellIDAdvanceFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…