Browse Source

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

Matrix4.d.ts: Parameters of decompose is not optional
Mr.doob 5 years ago
parent
commit
009932c88a
1 changed files with 4 additions and 5 deletions
  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;
 
 	/**