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

This commit is contained in:
Matt Woodrow 2014-05-28 13:21:32 +12:00
parent ee01b2dc68
commit a566c9094a

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;