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

Function CellFromPoint

s2/cell.go:71–73  ·  view source on GitHub ↗

CellFromPoint constructs a cell for the given Point.

(p Point)

Source from the content-addressed store, hash-verified

69
70// CellFromPoint constructs a cell for the given Point.
71func CellFromPoint(p Point) Cell {
72 return CellFromCellID(cellIDFromPoint(p))
73}
74
75// CellFromLatLng constructs a cell for the given LatLng.
76func CellFromLatLng(ll LatLng) Cell {

Callers 10

TestEncodeDecodeFunction · 0.85
TestCapContainsCellFunction · 0.85
TestCapIntersectsCellFunction · 0.85
makeSnappedPointsFunction · 0.85
TestPointsCompressionFunction · 0.85
TestRectCellOpsFunction · 0.85
ContainsPointMethod · 0.85
TestPointRegionFunction · 0.85
SnapPointMethod · 0.85

Calls 2

CellFromCellIDFunction · 0.85
cellIDFromPointFunction · 0.85

Tested by 8

TestEncodeDecodeFunction · 0.68
TestCapContainsCellFunction · 0.68
TestCapIntersectsCellFunction · 0.68
makeSnappedPointsFunction · 0.68
TestPointsCompressionFunction · 0.68
TestRectCellOpsFunction · 0.68
TestPointRegionFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…