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

Method And

path_intersection.go:153–155  ·  view source on GitHub ↗

And is the same as Path.And, but faster if paths are already split. Each resulting path is a single filling path followed by its holes as subpaths.

(qs Paths)

Source from the content-addressed store, hash-verified

151// And is the same as Path.And, but faster if paths are already split. Each resulting path
152// is a single filling path followed by its holes as subpaths.
153func (ps Paths) And(qs Paths) Paths {
154 return bentleyOttmann(ps, qs, opAND, NonZero)
155}
156
157// Or returns the boolean path operation of path p OR q, i.e. the union of both. It
158// It removes all self-intersections and overlapping areas, orients all filling paths CCW and all

Callers

nothing calls this directly

Calls 1

bentleyOttmannFunction · 0.85

Tested by

no test coverage detected