Merge pull request #425 from james4k/simplify-translate
Matrix3: simplify translate
This commit is contained in:
@@ -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 ();
|
tx += dx;
|
||||||
m.tx = dx;
|
ty += dy;
|
||||||
m.ty = dy;
|
|
||||||
this.concat (m);
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user