Constructor
new CatmullRomCurve3(points, optionsopt)
Parameters:
| Name | Type | Attributes | Description | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
points |
Array.<Vector3> | Control points. | |||||||||||
options |
Object |
<optional> |
Optional options.
Properties
|
- Source:
Throws:
-
-
When inputs are invalid.
- Type
- TypeError
-
-
-
When points are insufficient.
- Type
- RangeError
-
Classes
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