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

makeLimit

@JvmOverloads 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

Parameters

min - Float

max - Float

Receiver
Float

Return
Float