Get the bounds on the values of the curve and store the values in the return locaitons provided in min_y and max_y
.
| this |
a Curve. |
| min_y |
return location for minimal value. |
| max_y |
return location for maximal value. |