diff --git a/lime/math/Matrix3.hx b/lime/math/Matrix3.hx index ccdf35a81..dc14783e0 100644 --- a/lime/math/Matrix3.hx +++ b/lime/math/Matrix3.hx @@ -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; } @@ -452,4 +450,4 @@ class Matrix3 { } -} \ No newline at end of file +}