Browse Source

TS: Clean up.

linbingquan 5 years ago
parent
commit
c7268cbf71
1 changed files with 3 additions and 4 deletions
  1. 3 4
      src/math/Vector3.d.ts

+ 3 - 4
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, w: Vector3 ): this;
 
 	addScalar( s: number ): this;
 
@@ -94,7 +94,7 @@ export class Vector3 implements Vector {
 	 */
 	subVectors( a: Vector3, b: Vector3 ): this;
 
-	multiply( v: Vector3 ): this;
+	multiply( v: Vector3, w: Vector3 ): this;
 
 	/**
 	 * Multiplies this vector by scalar s.
@@ -283,8 +283,7 @@ export class Vector3 implements Vector {
 
 	fromBufferAttribute(
 		attribute: BufferAttribute,
-		index: number,
-		offset?: number
+		index: number
 	): this;
 
 	/**