Przeglądaj źródła

TS: Fix Matrix3.toArray: Add missing optional parameters

Johannes Deml 6 lat temu
rodzic
commit
04fb92b0fc
1 zmienionych plików z 2 dodań i 1 usunięć
  1. 2 1
      src/math/Matrix3.d.ts

+ 2 - 1
src/math/Matrix3.d.ts

@@ -101,7 +101,8 @@ export class Matrix3 implements Matrix {
 	 */
 	transposeIntoArray( r: number[] ): number[];
 	fromArray( array: number[], offset?: number ): Matrix3;
-	toArray(): number[];
+
+	toArray( array?: number[], offset?: number ): number[];
 
 	/**
 	 * Multiplies this matrix by m.