MCPcopy Create free account
hub / github.com/tdewolff/canvas / Contains

Method Contains

path_intersection.go:2470–2472  ·  view source on GitHub ↗

Contains 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.

()

Source from the content-addressed store, hash-verified

2468// Contains returns true if at least one point of the second shape lies in the first, and no points
2469// of the second lie in the exterior of the first.
2470func (rel Relation) Contains() bool {
2471 return (rel & 0xC1) == 1 // Contains
2472}
2473
2474// Within is the same as Contains but with the shapes swapped.
2475func (rel Relation) Within() bool {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected