wrap

fun wrap(n: Double, min: Double, max: Double): Double

Wraps the given value into the inclusive-exclusive interval between min and max.

Parameters

n

The value to wrap.

min

The minimum.

max

The maximum.