clamp

inline fun Int.clamp(min: Int, max: Int): Int
inline fun Float.clamp(min: Float = 0.0f, max: Float = 1.0f): Float
inline fun Double.clamp(min: Double = 0.0, max: Double = 1.0): Double