[THREE] add Curve.arcLengthDivisions (#25116)

* Update three-core.d.ts

add `optionalTarget` parameter

* Update three-core.d.ts

add Curve.arcLengthDivisions

* fix Indentation
This commit is contained in:
heroboy
2018-04-19 10:58:49 -07:00
committed by Ryan Cavanaugh
parent a146d147bb
commit c72a09b00f
+8
View File
@@ -6582,6 +6582,14 @@ export class AudioListener extends Object3D {
* class Curve<T extends Vector>
*/
export class Curve<T extends Vector> {
/**
* This value determines the amount of divisions when calculating the cumulative segment lengths of a curve via .getLengths.
* To ensure precision when using methods like .getSpacedPoints, it is recommended to increase .arcLengthDivisions if the curve is very large.
* Default is 200.
*/
arcLengthDivisions:number;
/**
* Returns a vector for point t of the curve where t is between 0 and 1
* getPoint(t: number): T;