Returns the length of the curve, from the beginning of the curve up to the specified t parameter. t defaults to 1.0, so by default this returns the length of the entire curve.
length = Curve:getLength(t, iterations)
Arguments
| Name | Type | Default | Description |
| t | number | 1.0 |
The t parameter to get the length at.
|
| iterations | number | 16 |
How many iterations to use to compute the length. More iterations will give a more accurate result, but will take longer to compute.
|
Returns
| Name | Type | Description |
| length | number |
The length of the curve.
|
See also