cyclicCurvePrimitive Method
Return the curve primitive at the given index, optionally using modulo to map index to the cyclic indexing.
- In particular,
-1is the final curve.
cyclicCurvePrimitive(index: number, cyclic: boolean = true): undefined | CurvePrimitive
| Parameter | Type | Description |
|---|---|---|
| index | number | cyclic index |
| cyclic | boolean | whether to employ modulo operator for wrap-around indexing. Default is true. |
Returns - undefined | CurvePrimitive
Defined in
- curve/CurveCollection.ts Line 425
Last Updated: 24 October, 2025
Found something wrong, missing, or unclear on this page? Raise an issue in our repo.