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

Function sect

plotter/conrec.go:19–21  ·  view source on GitHub ↗
(h, p [5]float64, v1, v2 int)

Source from the content-addressed store, hash-verified

17}
18
19func sect(h, p [5]float64, v1, v2 int) float64 {
20 return (h[v2]*p[v1] - h[v1]*p[v2]) / (h[v2] - h[v1])
21}
22
23// conrecLine performs an operation with a line at a given height derived
24// from data over the 2D box interval (i, j) to (i+1, j+1).

Callers 1

conrecFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected