title: Given a 4x4 homogeneous matrix, how can i get 3D world coords?
body: <p>So i have an object which is getting rotated then translated and rotated again. I am storing a matrix of these translations as an object member. Now when i come to object picking i need to know the 3D world coords of this object.</p>
  
  <p>Currently i have been able to get the position of the object like so</p>
  
  <p><code>
   coords[0] = finalMatrix[12];<p>
   coords[1] = finalMatrix[13];<p>
   coords[2] = finalMatrix[14];
  </code></p>
  
  <p>This is giving me the correct positions of the objects but i want to take the rotations into account as well. </p>
  
  <p>Any help would be great...</p>