MCPcopy Create free account
hub / github.com/gonum/plot / reverse

Method reverse

plotter/contour.go:467–472  ·  view source on GitHub ↗

reverse reverses the order of the point in a path and returns it.

()

Source from the content-addressed store, hash-verified

465
466// reverse reverses the order of the point in a path and returns it.
467func (p path) reverse() path {
468 for i, j := 0, len(p)-1; i < j; i, j = i+1, j-1 {
469 p[i], p[j] = p[j], p[i]
470 }
471 return p
472}
473
474// connect connects the contour b with the receiver, updating the ends map.
475// It returns a boolean indicating whether the connection was successful.

Callers 4

connectMethod · 0.80
exciseLoopsMethod · 0.80
exciseQuickMethod · 0.80
StringMethod · 0.80

Calls

no outgoing calls

Tested by 1

StringMethod · 0.64