filled out operator==(Matrix, Matrix) using FP_EQ()
git-svn-id: svn://anubis/fart/trunk@14 7f9b0f55-74a9-4bce-be96-3c2cd072584d
This commit is contained in:
parent
151a8895a8
commit
160d6998d6
@ -199,4 +199,13 @@ Vector operator*(const Matrix & m, const Vector & v)
|
||||
|
||||
bool operator==(const Matrix & m1, const Matrix & m2)
|
||||
{
|
||||
for (int i = 0; i < 4; i++)
|
||||
{
|
||||
for (int j = 0; j < 4; j++)
|
||||
{
|
||||
if (! FP_EQ(m1[i][j], m2[i][j]))
|
||||
return false;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user