소스 검색

Merge pull request #19068 from FMS-Cat/patch-1

Matrix4.d.ts: Parameters of decompose is not optional
Mr.doob 5 년 전
부모
커밋
009932c88a
1개의 변경된 파일4개의 추가작업 그리고 5개의 파일을 삭제
  1. 4 5
      src/math/Matrix4.d.ts

+ 4 - 5
src/math/Matrix4.d.ts

@@ -171,13 +171,12 @@ export class Matrix4 implements Matrix {
 	compose( translation: Vector3, rotation: Quaternion, scale: Vector3 ): Matrix4;
 
 	/**
-	 * Decomposes this matrix into the translation, rotation and scale components.
-	 * If parameters are not passed, new instances will be created.
+	 * Decomposes this matrix into it's position, quaternion and scale components.
 	 */
 	decompose(
-		translation?: Vector3,
-		rotation?: Quaternion,
-		scale?: Vector3
+		translation: Vector3,
+		rotation: Quaternion,
+		scale: Vector3
 	): Matrix4;
 
 	/**