removePoint.lua 512 B

123456789101112131415161718192021
  1. return {
  2. summary = 'Remove a control point from the Curve.',
  3. description = 'Removes a control point from the Curve.',
  4. arguments = {
  5. {
  6. name = 'index',
  7. type = 'number',
  8. description = 'The index of the control point to remove.'
  9. }
  10. },
  11. returns = {},
  12. notes = [[
  13. An error will be thrown if the index is less than one or more than the number of control points.
  14. ]],
  15. related = {
  16. 'Curve:getPointCount',
  17. 'Curve:getPoint',
  18. 'Curve:setPoint',
  19. 'Curve:addPoint'
  20. }
  21. }