HasSecant returns true when there are secant intersections, i.e. the curves intersect and cross (they cut).
()
| 126 | |
| 127 | // HasSecant returns true when there are secant intersections, i.e. the curves intersect and cross (they cut). |
| 128 | func (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). |
| 138 | func (zs Intersections) HasTangent() bool { |
nothing calls this directly
no outgoing calls
no test coverage detected