Package com.jeovanimartinez.androidutils.extensions.basictypes

Functions

Link copied to clipboard
fun Float.mapValue(    inMin: Float,     inMax: Float,     outMin: Float,     outMax: Float): Float

Re-maps a number from one range to another. That is, a value of inMin would get mapped to outMin, a value of inMax to outMax, values in-between to values in-between, etc.