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

Method IntersectsCell

s2/region.go:37–37  ·  view source on GitHub ↗

IntersectsCell reports whether the region intersects the given cell or if intersection could not be determined. It returns false if the region does not intersect.

(c Cell)

Source from the content-addressed store, hash-verified

35 // if intersection could not be determined. It returns false if the region
36 // does not intersect.
37 IntersectsCell(c Cell) bool
38
39 // ContainsPoint reports whether the region contains the given point or not.
40 // The point should be unit length, although some implementations may relax

Callers 12

TestCapContainsCellFunction · 0.65
TestCapIntersectsCellFunction · 0.65
TestRectCellOpsFunction · 0.65
checkCoveringTightFunction · 0.65
testCellChildrenFunction · 0.65
TestCellIntersectsCellFunction · 0.65
newCandidateMethod · 0.65
expandChildrenMethod · 0.65
FloodFillRegionCoveringFunction · 0.65
IntersectsCellMethod · 0.65
checkCellUnionCoveringFunction · 0.65

Implementers 6

Cells2/cell.go
Caps2/cap.go
Loops2/loop.go
Polygons2/polygon.go
Points2/point.go
Rects2/rect.go

Calls

no outgoing calls

Tested by 8

TestCapContainsCellFunction · 0.52
TestCapIntersectsCellFunction · 0.52
TestRectCellOpsFunction · 0.52
checkCoveringTightFunction · 0.52
testCellChildrenFunction · 0.52
TestCellIntersectsCellFunction · 0.52
checkCellUnionCoveringFunction · 0.52