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 ();
|
||||
m.tx = dx;
|
||||
m.ty = dy;
|
||||
this.concat (m);
|
||||
tx += dx;
|
||||
ty += dy;
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user