Răsfoiți Sursa

TS: Fix toArray method: Add optional parameters array and offset

Johannes Deml 6 ani în urmă
părinte
comite
dfd921c2d3
1 a modificat fișierele cu 2 adăugiri și 1 ștergeri
  1. 2 1
      src/math/Matrix4.d.ts

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

@@ -227,7 +227,8 @@ export class Matrix4 implements Matrix {
 	): Matrix4;
 	): Matrix4;
 	equals( matrix: Matrix4 ): boolean;
 	equals( matrix: Matrix4 ): boolean;
 	fromArray( array: number[], offset?: number ): Matrix4;
 	fromArray( array: number[], offset?: number ): Matrix4;
-	toArray(): number[];
+
+	toArray( array?: number[], offset?: number ): number[];
 
 
 	/**
 	/**
 	 * @deprecated Use {@link Matrix4#copyPosition .copyPosition()} instead.
 	 * @deprecated Use {@link Matrix4#copyPosition .copyPosition()} instead.