clamp

open fun clamp(min: Double, max: Double): T(source)
open fun clamp(min: T, max: T): T(source)