Whats the difference between theese two java code snippets?
<p>I have this code i am doing for university. The first code works as expected, the second one provides different results.</p>

<p>I can not see what they are doing differently??</p>

<p>first:</p>

<pre><code>public Mat3 getNormalMatrix() {
    return new Mat3(this.getInverseMatrix()).transpose();
}
</code></pre>

<p>second:</p>

<pre><code>public Mat3 getNormalMatrix() {
    Mat4 mat = this.getInverseMatrix();
    Mat3 bla = new Mat3(mat);
    bla.transpose();
    return bla;
}
</code></pre>
