Bint
2014-01-10 21:35:42 UTC
This is more of a math question but maybe someone knows the answer.
Sometimes I have a value which ranges from 0-1, and I want to take a linear
value and remap it to a "slow-in" or "slow-out" value.
The "slow-in" value is just a squared curve, so if r is between 0 and 1,
then the "slow-in" version is r*r. And the reverse of that is sqrt(r).
The "slow-out" value is more complicated: 1.0-(1.0-r)*(1.0-r)
My question is, what is the equivalent inverse of this function, as sqrt(r)
is to r*r?
Thanks!
B
Sometimes I have a value which ranges from 0-1, and I want to take a linear
value and remap it to a "slow-in" or "slow-out" value.
The "slow-in" value is just a squared curve, so if r is between 0 and 1,
then the "slow-in" version is r*r. And the reverse of that is sqrt(r).
The "slow-out" value is more complicated: 1.0-(1.0-r)*(1.0-r)
My question is, what is the equivalent inverse of this function, as sqrt(r)
is to r*r?
Thanks!
B