| 12345678910111213141516171819202122232425262728293031323334353637383940 |
- return {
- summary = 'Add a new control point to the Curve.',
- description = 'Inserts a new control point into the Curve at the specified index.',
- arguments = {
- {
- name = 'x',
- type = 'number',
- description = 'The x coordinate of the control point.'
- },
- {
- name = 'y',
- type = 'number',
- description = 'The y coordinate of the control point.'
- },
- {
- name = 'z',
- type = 'number',
- description = 'The z coordinate of the control point.'
- },
- {
- name = 'index',
- type = 'number',
- default = 'nil',
- description = [[
- The index to insert the control point at. If nil, the control point is added to the end of
- the list of control points.
- ]]
- }
- },
- returns = {},
- notes = [[
- An error will be thrown if the index is less than one or more than the number of control points.
- ]],
- related = {
- 'Curve:getPointCount',
- 'Curve:getPoint',
- 'Curve:setPoint',
- 'Curve:removePoint'
- }
- }
|