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
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).