MCPcopy Create free account
hub / github.com/cogentcore/core / XYRange

Function XYRange

plot/data.go:130–134  ·  view source on GitHub ↗

XYRange returns the minimum and maximum x and y values.

(xys XYer)

Source from the content-addressed store, hash-verified

128// XYRange returns the minimum and maximum
129// x and y values.
130func XYRange(xys XYer) (xmin, xmax, ymin, ymax float32) {
131 xmin, xmax = Range(XValues{xys})
132 ymin, ymax = Range(YValues{xys})
133 return
134}
135
136// XYs implements the XYer interface.
137type XYs []math32.Vector2

Callers 3

DataRangeMethod · 0.92
DataRangeMethod · 0.92
DataRangeMethod · 0.92

Calls 1

RangeFunction · 0.85

Tested by

no test coverage detected