浏览代码

Add optionalTarget in CatmullRomCurve3.getPoint()

CatmullRomCurve3.getPoint() should accept an [optional Vector3 target](https://github.com/mrdoob/three.js/blob/master/src/extras/curves/CatmullRomCurve3.js#L104) argument. It's missing in the TypeScript declaration file, which leads to compiler errors if users try to use this option.
Marquizzo 5 年之前
父节点
当前提交
96e61e337a
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/extras/curves/CatmullRomCurve3.d.ts

+ 1 - 1
src/extras/curves/CatmullRomCurve3.d.ts

@@ -43,6 +43,6 @@ export class CatmullRomCurve3 extends Curve<Vector3> {
 
 	points: Vector3[];
 
-	getPoint( t: number ): Vector3;
+	getPoint( t: number, optionalTarget?: Vector3 ): Vector3;
 
 }