Bug 1013767 - Add Matrix::PostTranslate. r=Bas

This commit is contained in:
Matt Woodrow 2014-05-28 13:21:32 +12:00
parent 8ca20ca187
commit 7c80741e2d

View File

@ -73,6 +73,13 @@ public:
return *this;
}
Matrix &PostTranslate(Float aX, Float aY)
{
_31 += aX;
_32 += aY;
return *this;
}
Matrix &Rotate(Float aAngle)
{
return *this = Matrix::Rotation(aAngle) * *this;