openrndr / org.openrndr.math / clamp

clamp

fun clamp(value: Double, min: Double, max: Double): Double (source)
fun clamp(value: Int, min: Int, max: Int): Int (source)
fun Vector2.clamp(min: Vector2, max: Vector2): Vector2 (source)
fun Vector3.clamp(min: Vector3, max: Vector3): Vector3 (source)
fun Vector4.clamp(min: Vector4, max: Vector4): Vector4 (source)
fun IntVector2.clamp(min: IntVector2, max: IntVector2): IntVector2 (source)
fun IntVector3.clamp(min: IntVector3, max: IntVector3): IntVector3 (source)
fun IntVector4.clamp(min: IntVector4, max: IntVector4): IntVector4 (source)