Пример #1
0
 /// <summary>
 ///     For values within bounds, returns the value,
 ///     for outer bounds, returns nearest edge value
 /// </summary>
 /// <param name="range">The rage to bound to</param>
 /// <param name="value">The value to bind</param>
 /// <returns>the bounds corrected value</returns>
 public int Handle(Range range, int value)
 {
     return(Range.AsClamped(value, range.Start, range.End));
 }