mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 22:01:30 +00:00
Bug 985320 - Add a static Matrix::Scaling method to Moz2D's Matrix. r=Bas
This commit is contained in:
parent
0310ca794b
commit
62e7421fb7
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user