title: Clamp presentable value
body: <p>I'm sitting here and trying to resolve an issue I have, with alternating between 0 and 1 of a variable.</p>
  
  <p>Basicly, I want to do something like this:</p>
  
  <pre><code>float distance = 32f;
  float maxDistance = 32f;
  float clampedDistance = Math.ClampPresentableValue(distance, maxDistance);
  </code></pre>
  
  <p>The variable "clampedDistance", would receive the clamped value from the math method. "ClampPresentableValue" should in this case, be able to take the "distance" value, and calculate, where it is in the "0 to 1" timeline, in comparison to the maxDistance.</p>
  
  <p>In this case, since "distance" is the same as "maxDistance", the clamped value would be 1.0f. But if we cut "distance" down to 16f, the clamped value would present 0.5f, in the "clampedDistance" variable.</p>
  
  <p>What is something like this called? Does it have a name, or is it just an algorithm that i'd have to build myself?</p>