private int CalculateLength(double intervalPos) { var value = (int)ScaleCurveToValue(LengthCurve.GetValue(intervalPos), 100, 1); if (value < 1) { value = 1; } return(value); }
private double CalculateLength(double intervalPos) { return ScaleCurveToValue(LengthCurve.GetValue(intervalPos), 20, 1); }