瀏覽代碼

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

Johannes Deml 6 年之前
父節點
當前提交
dfd921c2d3
共有 1 個文件被更改,包括 2 次插入1 次删除
  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;
 	equals( matrix: Matrix4 ): boolean;
 	fromArray( array: number[], offset?: number ): Matrix4;
-	toArray(): number[];
+
+	toArray( array?: number[], offset?: number ): number[];
 
 	/**
 	 * @deprecated Use {@link Matrix4#copyPosition .copyPosition()} instead.