зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1065737 - Add a PreMultiply() method to Moz2D's Matrix class. r=Bas
This commit is contained in:
Родитель
d1a93f6238
Коммит
24dd1d2cf1
|
@ -211,6 +211,15 @@ public:
|
|||
return *this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Multiplies in the opposite order to operator=*.
|
||||
*/
|
||||
Matrix &PreMultiply(const Matrix &aMatrix)
|
||||
{
|
||||
*this = aMatrix * *this;
|
||||
return *this;
|
||||
}
|
||||
|
||||
/* Returns true if the other matrix is fuzzy-equal to this matrix.
|
||||
* Note that this isn't a cheap comparison!
|
||||
*/
|
||||
|
|
Загрузка…
Ссылка в новой задаче