public static float Clamp(this MinMax <float> minMax, float value) { return(Mathf.Clamp(value, minMax.min, minMax.max)); }
public static float Evaluate(this MinMax <float> minMax, float t) { var diff = minMax.max - minMax.min; return(minMax.min + diff * t); }