Constructor
new CatmullRomCurve3( points : Array.<Vector3>, closed : boolean, curveType : 'centripetal' | 'chordal' | 'catmullrom', tension : number )
Constructs a new Catmull-Rom curve.
| points |
An array of 3D points defining the curve. |
| closed |
Whether the curve is closed or not. Default is |
| curveType |
The curve type. Default is |
| tension |
Tension of the curve. Default is |
Properties
.closed : boolean
Whether the curve is closed or not.
Default is false.
.curveType : 'centripetal' | 'chordal' | 'catmullrom'
The curve type.
Default is 'centripetal'.
.isCatmullRomCurve3 : boolean (readonly)
This flag can be used for type testing.
Default is true.
.tension : number
Tension of the curve.
Default is 0.5.
Methods
.getPoint( t : number, optionalTarget : Vector3 ) : Vector3
Returns a point on the curve.
| t |
A interpolation factor representing a position on the curve. Must be in the range |
| optionalTarget |
The optional target vector the result is written to. |
- Overrides: Curve#getPoint
- Returns: The position on the curve.