Curve:getPoint

Returns a control point of the Curve.

x, y, z = Curve:getPoint(index)

Arguments

NameTypeDescription
indexnumberThe index to retrieve.

Returns

NameTypeDescription
xnumberThe x coordinate of the control point.
ynumberThe y coordinate of the control point.
znumberThe z coordinate of the control point.

Notes

An error will be thrown if the index is less than one or more than the number of control points.

See also