smooth Return To Range
open fun smoothReturnToRange(x: Float, fromMin: Float, fromMax: Float, toMin: Float, toMax: Float): Float
Translates a value in a (fromMin,fromMax) range into a "back-and-forth" value in a (toMin,toMax) range with smooth ease in and ease out.
Return
smooth "back-and-forth" float value equals to toMin at start and toMin, and toMax at the mid-point between the (fromMin, fromMax) range
Parameters
x
from Min
from Max
to Min
to Max