Method Wrap
Wrap(int, int, int)
Wraps given value into specified interval.
public static int Wrap(int value, int min, int max)
Parameters
Returns
- int
Maximum if value less then minimum, minimum if value more then maximum; otherwise original value.