2
0
Эх сурвалжийг харах

Fix Matrix.prependTranslate type ambiguity.

Yanrishatum 6 жил өмнө
parent
commit
be7ef94254
1 өөрчлөгдсөн 2 нэмэгдсэн , 2 устгасан
  1. 2 2
      h2d/col/Matrix.hx

+ 2 - 2
h2d/col/Matrix.hx

@@ -71,12 +71,12 @@ class Matrix {
 		return new Point(pt.x * a + pt.y * c + x, pt.x * b + pt.y * d + y);
 	}
 
-	public inline function translate(x, y) {
+	public inline function translate( x : Float, y : Float ) {
 		this.x += x;
 		this.y += y;
 	}
 
-	public inline function prependTranslate( x, y ) {
+	public inline function prependTranslate( x : Float, y : Float ) {
 		this.x += a * x + c * y;
 		this.y += b * x + d * y;
 	}