arbitrarySmooth

open fun arbitrarySmooth(x: Float, min: Float, max: Float): Float

Translates a value in a (min,max) range to a value in the same range with smooth ease in and ease out.

Return

smoothed float value in that range

Parameters

x

Float clamped from min to max

min

minimal range value

max

maximal range value