Skip to content

Commit

Permalink
Matrix22 template constructor and make identity no longer use memset.
Browse files Browse the repository at this point in the history
Signed-off-by: Owen Thompson <oxt3479@rit.edu>
  • Loading branch information
oxt3479 authored and cary-ilm committed Apr 17, 2020
1 parent 98ce944 commit 45eb592
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions IlmBase/Imath/ImathMatrix.h
Original file line number Diff line number Diff line change
Expand Up @@ -1181,8 +1181,9 @@ template <class T>
inline
Matrix22<T>::Matrix22 ()
{
memset (x, 0, sizeof (x));
x[0][0] = 1;
x[0][1] = 0;
x[1][0] = 0;
x[1][1] = 1;
}

Expand Down Expand Up @@ -1326,8 +1327,9 @@ template <class T>
inline void
Matrix22<T>::makeIdentity()
{
memset (x, 0, sizeof (x));
x[0][0] = 1;
x[0][1] = 0;
x[1][0] = 0;
x[1][1] = 1;
}

Expand Down

0 comments on commit 45eb592

Please sign in to comment.