mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-09 19:35:51 +00:00
Bug 1013767 - Add Matrix::PostTranslate. r=Bas
This commit is contained in:
parent
8ca20ca187
commit
7c80741e2d
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user