I'm trying to write a parametric straightline function that changes its values between 0.529 and 0.933.
Usually what I would do is:
$r = 0.529+(0.933-0.529)*v$
where parameter $v= [0,1]$
This ensure that my r value will either be 0.529 or 0.933
However, due to some limitations my parameter $v$ has to be changed to $v=[-2,1]$
Is there anyway that I can change the straightline function such that it will still return r as either 0.529 or 0.933?
Thank you!