Curve:getPoint

Edit

Returns a control point of the Curve.

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

Arguments

NameTypeDescription
indexnumber The index to retrieve.

Returns

NameTypeDescription
xnumber The x coordinate of the control point.
ynumber The y coordinate of the control point.
znumber The 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