mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-09 11:25:00 +00:00
Bug 1055661 - Add Matrix5x4::operator*=. f=milan, r=Bas
This commit is contained in:
parent
3757c2f101
commit
16ca30512b
@ -166,8 +166,8 @@ public:
|
||||
|
||||
Matrix& operator*=(const Matrix &aMatrix)
|
||||
{
|
||||
Matrix resultMatrix = *this * aMatrix;
|
||||
return *this = resultMatrix;
|
||||
*this = *this * aMatrix;
|
||||
return *this;
|
||||
}
|
||||
|
||||
/* Returns true if the other matrix is fuzzy-equal to this matrix.
|
||||
@ -572,8 +572,8 @@ public:
|
||||
|
||||
Matrix4x4& operator*=(const Matrix4x4 &aMatrix)
|
||||
{
|
||||
Matrix4x4 resultMatrix = *this * aMatrix;
|
||||
return *this = resultMatrix;
|
||||
*this = *this * aMatrix;
|
||||
return *this;
|
||||
}
|
||||
|
||||
/* Returns true if the matrix is an identity matrix.
|
||||
@ -792,6 +792,12 @@ public:
|
||||
return resultMatrix;
|
||||
}
|
||||
|
||||
Matrix5x4& operator*=(const Matrix5x4 &aMatrix)
|
||||
{
|
||||
*this = *this * aMatrix;
|
||||
return *this;
|
||||
}
|
||||
|
||||
Float _11, _12, _13, _14;
|
||||
Float _21, _22, _23, _24;
|
||||
Float _31, _32, _33, _34;
|
||||
|
Loading…
Reference in New Issue
Block a user