XYRange returns the minimum and maximum x and y values.
(xys XYer)
| 128 | // XYRange returns the minimum and maximum |
| 129 | // x and y values. |
| 130 | func 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. |
| 137 | type XYs []math32.Vector2 |