title: Getting an array pointer from std::vector<glm::vec3> with the type of float
body: <p>I have a <code>std::vector&lt;glm::vec3&gt;</code> and I want to get an array pointer from it with the type of float.</p>
  
  <p>If the std::vector contents would be:</p>
  
  <pre><code>std::vector[0] = vec3(0.1f, 0.2f, 0.3f)
  std::vector[1] = vec3(0.4f, 0.5f, 0.6f)
  std::vector[2] = vec3(0.7f, 0.8f, 0.9f)
  </code></pre>
  
  <p>Then this is what the array pointer would return with the current index specified:</p>
  
  <pre><code>array[0] = 0.1f
  array[1] = 0.2f
  array[2] = 0.3f
  array[3] = 0.4f
  array[4] = 0.5f
  array[5] = 0.6f
  array[6] = 0.7f
  array[7] = 0.8f
  array[8] = 0.9f
  </code></pre>
  
  <p>If this is possible, what is the most common way to achieve it?</p>