Parcourir la source

TS: Remove useless params for function.

linbingquan il y a 5 ans
Parent
commit
053ed1dc9b
4 fichiers modifiés avec 6 ajouts et 7 suppressions
  1. 1 1
      src/math/Matrix3.d.ts
  2. 1 1
      src/math/Vector2.d.ts
  3. 2 2
      src/math/Vector3.d.ts
  4. 2 3
      src/math/Vector4.d.ts

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

@@ -76,7 +76,7 @@ export class Matrix3 implements Matrix {
 	setFromMatrix4( m: Matrix4 ): Matrix3;
 	multiplyScalar( s: number ): Matrix3;
 	determinant(): number;
-	getInverse( matrix: Matrix3, throwOnDegenerate?: boolean ): Matrix3;
+	getInverse( matrix: Matrix3 ): Matrix3;
 
 	/**
 	 * Transposes this matrix in place.

+ 1 - 1
src/math/Vector2.d.ts

@@ -35,7 +35,7 @@ export interface Vector {
 	 *
 	 * add(v:T):T;
 	 */
-	add( v: Vector, w?: Vector ): this;
+	add( v: Vector ): this;
 
 	/**
 	 * addVectors(a:T, b:T):T;

+ 2 - 2
src/math/Vector3.d.ts

@@ -71,7 +71,7 @@ export class Vector3 implements Vector {
 	/**
 	 * Adds v to this vector.
 	 */
-	add( v: Vector3, w: Vector3 ): this;
+	add( v: Vector3 ): this;
 
 	addScalar( s: number ): this;
 
@@ -211,7 +211,7 @@ export class Vector3 implements Vector {
 	/**
 	 * Sets this vector to cross product of itself and v.
 	 */
-	cross( a: Vector3, w: Vector3 ): this;
+	cross( a: Vector3 ): this;
 
 	/**
 	 * Sets this vector to cross product of a and b.

+ 2 - 3
src/math/Vector4.d.ts

@@ -68,7 +68,7 @@ export class Vector4 implements Vector {
 	/**
 	 * Adds v to this vector.
 	 */
-	add( v: Vector4, w?: Vector4 ): this;
+	add( v: Vector4 ): this;
 
 	addScalar( scalar: number ): this;
 
@@ -206,8 +206,7 @@ export class Vector4 implements Vector {
 
 	fromBufferAttribute(
 		attribute: BufferAttribute,
-		index: number,
-		offset?: number
+		index: number
 	): this;
 
 	/**