Class: CatmullRomCurve3

CatmullRomCurve3(points, optionsopt)

Catmull-Rom curve in 3D.

Constructor

new CatmullRomCurve3(points, optionsopt)

Parameters:
Name Type Attributes Description
points Array.<Vector3> Control points.
options Object <optional>
Optional options.
Properties
Name Type Attributes Default Description
closed boolean <optional>
false Whether the curve is closed.
Source:
Throws:
  • When inputs are invalid.
    Type
    TypeError
  • When points are insufficient.
    Type
    RangeError

Classes

CatmullRomCurve3

Members

closed

Source:

points

Source:

Methods

getPoint(curveParameter, outopt) → {Vector3}

Parameters:
Name Type Attributes Description
curveParameter number Parameter in [0..1].
out Vector3 <optional>
Optional output vector.
Source:
Throws:
When inputs are invalid.
Type
TypeError
Returns:
Type
Vector3

getTangent(curveParameter, outopt) → {Vector3}

Parameters:
Name Type Attributes Description
curveParameter number Parameter in [0..1].
out Vector3 <optional>
Optional output vector.
Source:
Throws:
When inputs are invalid.
Type
TypeError
Returns:
Type
Vector3