Curve
new Curve()THREE equivalent: THREE.Curve
Abstract base class for parametric curves. Subclasses implement getPoint(t) to define the curve shape.
Properties
Section titled “Properties”| Name | Type | Description |
|---|---|---|
arcLengthDivisions |
number |
Number of subdivisions for arc-length parameterization. Default 200. |
Methods
Section titled “Methods”| Method | Description |
|---|---|
getPoint(t: number, target?): Vector2|Vector3 |
Returns the point at parameter t in [0, 1]. Abstract - must be overridden. |
getPointAt(u: number, target?): Vector2|Vector3 |
Returns the point at arc-length fraction u in [0, 1]. |
getPoints(divisions?: number): Array |
Returns an array of equi-parameter points along the curve. |
getSpacedPoints(divisions?: number): Array |
Returns an array of equidistant points along the curve. |
getLength(): number |
Returns the total arc length of the curve. |
getTangent(t: number, target?): Vector2|Vector3 |
Returns the unit tangent at parameter t via finite difference. |
clone(): Curve |
Returns a copy of this curve. |