clamp

fun clamp(value: Double, min: Double, max: Double): Double

Constrain a value to lie between two values.

Return

Parameters

value
min
max