Bug 985320 - Add a static Matrix::Scaling method to Moz2D's Matrix. r=Bas

This commit is contained in:
Jonathan Watt 2014-03-19 22:33:38 +08:00
parent 0310ca794b
commit 62e7421fb7

View File

@ -123,6 +123,11 @@ public:
GFX2D_API static Matrix Rotation(Float aAngle);
static Matrix Scaling(Float aX, Float aY)
{
return Matrix(aX, 0.0f, 0.0f, aY, 0.0f, 0.0f);
}
Matrix operator*(const Matrix &aMatrix) const
{
Matrix resultMatrix;