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

Method Div

path_intersection.go:221–223  ·  view source on GitHub ↗

Div is the same as Path.DivideBy, 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

219// Div is the same as Path.DivideBy, but faster if paths are already split. Each resulting
220// path is a single filling path followed by its holes as subpaths.
221func (ps Paths) Div(qs Paths) Paths {
222 return bentleyOttmann(ps, qs, opDIV, NonZero)
223}
224
225// Relate returns the spatial relation as defined by DE-9IM between the two paths as well as the intersections between both. It is
226// faster if you need to check multiple spatial relations and/or retrieve the intersections.

Callers

nothing calls this directly

Calls 1

bentleyOttmannFunction · 0.85

Tested by

no test coverage detected