<story><title>Introduction to the Math of Computer Graphics</title><url>http://codeofthedamned.com/index.php/introduction-to-the-math-of</url></story><parent_chain></parent_chain><comment><author>overgard</author><text>Small thing, but some of the examples have some pretty bad undefined behavior bugs. For instance:&lt;p&gt;&lt;pre&gt;&lt;code&gt;    Matrix&amp;amp; operator*( const double scalar,
                       const Matrix&amp;amp; rhs)
    {
      Matrix result(rhs);
      result *= scalar;
 
      return result;
    }
&lt;/code&gt;&lt;/pre&gt;
(Returning a reference to a stack variable is undefined behavior, but realistically you&amp;#x27;re probably either looking at a hard crash or a really hard to track down bug)</text></comment>
<story><title>Introduction to the Math of Computer Graphics</title><url>http://codeofthedamned.com/index.php/introduction-to-the-math-of</url></story><parent_chain></parent_chain><comment><author>djhworld</author><text>What I&amp;#x27;m failing to understand is how do matrices relate to 3D graphics. What is a matrix representing?&lt;p&gt;I think I get the idea of a vertex, as that can be used to represent a point on a shape, like a 3d model.</text></comment>