Merge pull request #425 from james4k/simplify-translate

Matrix3: simplify translate
This commit is contained in:
Joshua Granick
2015-05-01 05:11:32 -07:00

View File

@@ -406,12 +406,10 @@ class Matrix3 {
}
public function translate (dx:Float, dy:Float) {
public inline function translate (dx:Float, dy:Float) {
var m = new Matrix3 ();
m.tx = dx;
m.ty = dy;
this.concat (m);
tx += dx;
ty += dy;
}