Explorar o código

Merge pull request #17108 from Mugen87/dev31

TS: Add missing methods to Matrix3.
Mr.doob %!s(int64=6) %!d(string=hai) anos
pai
achega
453204b308
Modificáronse 1 ficheiros con 11 adicións e 0 borrados
  1. 11 0
      src/math/Matrix3.d.ts

+ 11 - 0
src/math/Matrix3.d.ts

@@ -100,6 +100,17 @@ export class Matrix3 implements Matrix {
 	 * Transposes this matrix into the supplied array r, and returns itself.
 	 */
 	transposeIntoArray( r: number[] ): number[];
+
+	setUvTransform( tx: number, ty: number, sx: number, sy: number, rotation: number, cx: number, cy: number ): Matrix3;
+
+	scale( sx: number, sy: number ): Matrix3;
+
+	rotate( theta: number ): Matrix3;
+
+	translate( tx: number, ty: number ): Matrix3;
+
+	equals( matrix: Matrix3 ): boolean;
+
 	fromArray( array: number[], offset?: number ): Matrix3;
 
 	toArray( array?: number[], offset?: number ): number[];