MCPcopy Index your code
hub / github.com/gonum/plot / isLoop

Function isLoop

plotter/contour.go:287–291  ·  view source on GitHub ↗

isLoop returns true iff a vg.Path is a closed loop.

(p vg.Path)

Source from the content-addressed store, hash-verified

285
286// isLoop returns true iff a vg.Path is a closed loop.
287func 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

Callers 2

PlotMethod · 0.85
TestContourPathsFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestContourPathsFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…