title: Normalizing a between 0 and 1 to a given minimum and maximum
body: <p>I'm dealing with the pitch of a joystick.</p>
  
  <p>This pitch can vary between 0 (all down) and 1 (all up). 
  A pitch of 0.5 would mean that the joystick is in its middle position.</p>
  
  <p>I would like to find a formula that would "map" this pitch to a given minimum and maximum.</p>
  
  <p>The formular would tell me</p>
  
  <pre><code>- that a joystick pitch value of 0 would correspond to a given minimum (let's say -20) 
  - that a joystick pitch value of 1 would correspond to a given maximum (let's say 20)
  - that a joystick pitch value of 0.5 would correspond to 0 (as it's in the middle of minimum and maximum
  </code></pre>
  
  <p>I have a black out, I don't find the formula to solve this riddle.</p>
  
  <p>Thank you for the help.</p>