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

Method Within

path_intersection.go:2475–2477  ·  view source on GitHub ↗

Within is the same as Contains but with the shapes swapped.

()

Source from the content-addressed store, hash-verified

2473
2474// Within is the same as Contains but with the shapes swapped.
2475func (rel Relation) Within() bool {
2476 return (rel & 0x25) == 1 // Within
2477}
2478
2479// Covers returns true if at least one point of the second shape lies in the first, and no points
2480// of the second lie in the exterior of the first, including boundaries. It is similar to Contains

Callers 2

TestPathRelateFunction · 0.80
drawFunction · 0.80

Calls

no outgoing calls

Tested by 1

TestPathRelateFunction · 0.64