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

Method HasSecant

path_intersection_util.go:128–135  ·  view source on GitHub ↗

HasSecant returns true when there are secant intersections, i.e. the curves intersect and cross (they cut).

()

Source from the content-addressed store, hash-verified

126
127// HasSecant returns true when there are secant intersections, i.e. the curves intersect and cross (they cut).
128func (zs Intersections) HasSecant() bool {
129 for _, z := range zs {
130 if !z.Tangent {
131 return true
132 }
133 }
134 return false
135}
136
137// HasTangent returns true when there are tangent intersections, i.e. the curves intersect but don't cross (they touch).
138func (zs Intersections) HasTangent() bool {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected