title: Is there a function to calculate this unit vector in glm?
body: <p>I have the following function in c++ to calculate a unit vector:</p>
  
  <pre><code>glm::vec3 unit_vector(glm::vec3 v) {
      return v / (float)v.length();
  }
  </code></pre>
  
  <p>Is there a glm equivalent I can use?</p>