Jelajahi Sumber

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 tahun lalu
induk
melakukan
96e61e337a
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  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;
 
 }