isLoop returns true iff a vg.Path is a closed loop.
(p vg.Path)
| 285 | |
| 286 | // isLoop returns true iff a vg.Path is a closed loop. |
| 287 | func isLoop(p vg.Path) bool { |
| 288 | s := p[0] |
| 289 | e := p[len(p)-1] |
| 290 | return s.Pos == e.Pos |
| 291 | } |
| 292 | |
| 293 | // contourPaths returns a collection of vg.Paths describing contour lines based |
| 294 | // on the input data in m cut at the given levels. The trX and trY function |
no outgoing calls
searching dependent graphs…