RichUtils / pyxis.uzuki.live.richutilskt.utils / kotlin.Double

Extensions for kotlin.Double

makeLimit

fun Double.makeLimit(min: Double = 0.0, max: Double = 0.0): Double

Adjust the given number so that it does not go out of range with given min, max