clamp

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

Returns number whose value is limited between min and max.


@JvmName(name = "doubleClamp")
fun Double.clamp(min: Double, max: Double): Double(source)
@JvmName(name = "intClamp")
fun Int.clamp(min: Int, max: Int): Int(source)


Returns Vector2 whose value is limited between min and max per vector component.


Returns Vector3 whose value is limited between min and max per vector component.


Returns Vector4 whose value is limited between min and max per vector component.


Returns IntVector2 whose value is limited between min and max per vector component.


Returns IntVector3 whose value is limited between min and max per vector component.


Returns IntVector4 whose value is limited between min and max per vector component.