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

Method Intersects

path_intersection.go:2452–2454  ·  view source on GitHub ↗

Intersects returns true if both shapes have at least one point in common, ie. they may touch/overlap/contain/equal.

()

Source from the content-addressed store, hash-verified

2450// Intersects returns true if both shapes have at least one point in common, ie. they may
2451// touch/overlap/contain/equal.
2452func (rel Relation) Intersects() bool {
2453 return (rel & 0x1B) != 0
2454}
2455
2456// Equals returns true if all interior points of one are interior of the other, and the same for
2457// exterior points.

Callers 3

TouchesMethod · 0.80
TestPathRelateFunction · 0.80
drawFunction · 0.80

Calls

no outgoing calls

Tested by 1

TestPathRelateFunction · 0.64