clamp

open fun clamp(value: Float, min: Float, max: Float): Float

Clamps a value between a minimum and maximum range.