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

Extensions for kotlin.Float

makeLimit

fun Float.makeLimit(min: Float = 0.0f, max: Float = 0.0f): Float

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