private double EnsureMinMax(double value, int index)
 {
     return(Math1D.Clamp(value, _minValue[index], _maxValue[index]));
 }