Curve:getLength

Edit

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

NameTypeDefaultDescription
tnumber1.0 The t parameter to get the length at.
iterationsnumber16 How many iterations to use to compute the length. More iterations will give a more accurate result, but will take longer to compute.

Returns

NameTypeDescription
lengthnumber The length of the curve.

See also