HasTangent returns true when there are tangent intersections, i.e. the curves intersect but don't cross (they touch).
()
| 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 { |
| 139 | for _, z := range zs { |
| 140 | if z.Tangent { |
| 141 | return true |
| 142 | } |
| 143 | } |
| 144 | return false |
| 145 | } |
| 146 | |
| 147 | func (zs Intersections) add(pos Point, ta, tb, dira, dirb float64, tangent, same bool) Intersections { |
| 148 | // normalise T values between [0,1] |
nothing calls this directly
no outgoing calls
no test coverage detected