clampFloat

fun clampFloat(number: Float, min: Float, max: Float): Float

Clamps a floating number between two values.

Return

the clamped number

Parameters

number

the number to clamp

min

the minimum

max

the maximum

Sources

Link copied to clipboard