title: Function for perspective projection of a matrix in C++
body: <p>Does anyone have a function that returns the perspective projection of a 3x3 matrix in C++?</p>
  
  <pre><code>Matrix Perspective()
  {
     Matrix m(0, 0, 0);  // Creates identity matrix
     // Perspective projection formulas here
     return m;
  }
  </code></pre>