title: C++/OpenGL convert world coords to screen(2D) coords
body: <p>I am making a game in OpenGL where I have a few objects within the world space. I want to make a function where I can take in an object's location (3D) and transform it to the screen's location (2D) and return it.</p>
  
  <p>I know the the 3D location of the object, projection matrix and view matrix in the following varibles:</p>
  
  <pre><code>Matrix projectionMatrix;
  Matrix viewMatrix;
  Vector3 point3D;
  </code></pre>