浏览代码

TS: Clean up.

linbingquan 5 年之前
父节点
当前提交
c7826691ce
共有 3 个文件被更改,包括 3 次插入3 次删除
  1. 1 1
      src/math/Box2.d.ts
  2. 1 1
      src/math/Box3.d.ts
  3. 1 1
      src/math/Vector3.d.ts

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

@@ -23,7 +23,7 @@ export class Box2 {
 	expandByScalar( scalar: number ): Box2;
 	expandByScalar( scalar: number ): Box2;
 	containsPoint( point: Vector2 ): boolean;
 	containsPoint( point: Vector2 ): boolean;
 	containsBox( box: Box2 ): boolean;
 	containsBox( box: Box2 ): boolean;
-	getParameter( point: Vector2 ): Vector2;
+	getParameter( point: Vector2, target: Vector2 ): Vector2;
 	intersectsBox( box: Box2 ): boolean;
 	intersectsBox( box: Box2 ): boolean;
 	clampPoint( point: Vector2, target: Vector2 ): Vector2;
 	clampPoint( point: Vector2, target: Vector2 ): Vector2;
 	distanceToPoint( point: Vector2 ): number;
 	distanceToPoint( point: Vector2 ): number;

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

@@ -32,7 +32,7 @@ export class Box3 {
 	expandByObject( object: Object3D ): this;
 	expandByObject( object: Object3D ): this;
 	containsPoint( point: Vector3 ): boolean;
 	containsPoint( point: Vector3 ): boolean;
 	containsBox( box: Box3 ): boolean;
 	containsBox( box: Box3 ): boolean;
-	getParameter( point: Vector3 ): Vector3;
+	getParameter( point: Vector3, target: Vector3 ): Vector3;
 	intersectsBox( box: Box3 ): boolean;
 	intersectsBox( box: Box3 ): boolean;
 	intersectsSphere( sphere: Sphere ): boolean;
 	intersectsSphere( sphere: Sphere ): boolean;
 	intersectsPlane( plane: Plane ): boolean;
 	intersectsPlane( plane: Plane ): boolean;

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

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