title: Simplify if condition code in C
body: <p>How can I simplify those three simple if conditions?</p>
  
  <pre><code>if(v.x &lt; 0)
  {
      v.x *= -1;
  }
  if(v.y &lt; 0)
  {
      v.y *= -1;
  }
  if(v.z &lt; 0)
  {
      v.z *= -1;
  }
  </code></pre>