<div class="gmail_quote">On Fri, Sep 24, 2010 at 12:37 PM, Sean McBride <span dir="ltr"><<a href="mailto:sean@rogue-research.com">sean@rogue-research.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi all,<br>
<br>
Both vtkMatrix3x3.h and vtkMatrix4x4.h document their creation API like so:<br>
<br>
// Construct a 3x3 identity matrix.<br>
static vtkMatrix3x3 *New();<br>
<br>
// Construct a 4x4 identity matrix.<br>
static vtkMatrix4x4 *New();<br>
<br>
But looking at the implementations, it seems that creating a 3x3 _does_<br>
create an identity matrix, but creating a 4x4 does _not_.<br>
<br>
It seems weird that two very similar clases diverge in this way. Why is<br>
this? And what should be done? I propose changing vtkMatrix4x4 to<br>
conform to its documented behaviour.<br>
<br></blockquote><div>I wrote the 3x3 and it did not occur to me not to initialize it to the identity. It came much later than the 4x4 matrix, and at the time I did not want to change too much in the 4x4 class as so much uses it. What you propose certainly seems reasonable to me.</div>
<div><br></div><div>Marcus</div><div><div>--</div><div>Marcus D. Hanwell, Ph.D.</div><div>R&D Engineer, Kitware Inc.</div><div>(518) 881-4937</div></div></div>