clip

fun clip(value: Double, minimum: Double, maximum: Double): Double

Clips a value to the range max, min.

Return

The clipped value.

Parameters

value

Value to clip.

minimum

Minimum value of range.

maximum

Maximum value of range.