title: C# method to scale values?
body: <p>I have a value range from 0 to 255.</p>
  
  <p>There is a method that returns an array with a min and max values within this range, i.e: 13, 15, 20, 27, 50 ... 240
  where 13 is the min and 240 is the max</p>
  
  <p>I need to scale these values so that 13 becomes 0 and 240 becomes 255 and scale all the other values between them proportionally.</p>
  
  <p>Is there any C# method that does that?</p>
  
  <p>thanks!</p>