Name of range percent function?

edited July 2013 in Help request
A common thing to do is to determine the percentage of a range:

lower = 10
upper = 20
current = 13

rangePct = (current - lower) / (upper - lower)

Is there a name for this sort of function?

I'm asking in the same vein as "clamp to between 0 and 1" was known as "saturate".

Comments

  • edited July 2013
    That would be called scale & bias.
    It's usually combined with saturate to provide a curve defined in R -> [0;1].

    In graphics programming it's often used for domain conversion as a first step for functions such as smoothstep or smootherstep (both of which are defined in orx's math module).
Sign In or Register to comment.