MCPcopy
hub / github.com/tdewolff/canvas / Covers

Method Covers

path_intersection.go:2482–2484  ·  view source on GitHub ↗

Covers returns true if at least one point of the second shape lies in the first, and no points of the second lie in the exterior of the first, including boundaries. It is similar to Contains but includes lines on the boundary of an area.

()

Source from the content-addressed store, hash-verified

2480// of the second lie in the exterior of the first, including boundaries. It is similar to Contains
2481// but includes lines on the boundary of an area.
2482func (rel Relation) Covers() bool {
2483 return (rel&0x1B) != 0 && (rel&0xC0) == 0 // Covers
2484}
2485
2486// CoveredBy is the same as Covers but with the shapes swapped.
2487func (rel Relation) CoveredBy() bool {

Callers 2

ContainsMethod · 0.80
TestPathRelateFunction · 0.80

Calls

no outgoing calls

Tested by 1

TestPathRelateFunction · 0.64