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

Method Distance

s2/cell.go:645–647  ·  view source on GitHub ↗

Distance reports the distance from the cell to the given point. Returns zero if the point is inside the cell.

(target Point)

Source from the content-addressed store, hash-verified

643// Distance reports the distance from the cell to the given point. Returns zero if
644// the point is inside the cell.
645func (c Cell) Distance(target Point) s1.ChordAngle {
646 return c.distanceInternal(target, true)
647}
648
649// MaxDistance reports the maximum distance from the cell (including its interior) to the
650// given point.

Calls 1

distanceInternalMethod · 0.95