getPoint.lua 836 B

12345678910111213141516171819202122232425262728293031323334353637
  1. return {
  2. summary = 'Get a control point of the Curve.',
  3. description = 'Returns a control point of the Curve.',
  4. arguments = {
  5. {
  6. name = 'index',
  7. type = 'number',
  8. description = 'The index to retrieve.'
  9. }
  10. },
  11. returns = {
  12. {
  13. name = 'x',
  14. type = 'number',
  15. description = 'The x coordinate of the control point.'
  16. },
  17. {
  18. name = 'y',
  19. type = 'number',
  20. description = 'The y coordinate of the control point.'
  21. },
  22. {
  23. name = 'z',
  24. type = 'number',
  25. description = 'The z coordinate of the control point.'
  26. }
  27. },
  28. notes = [[
  29. An error will be thrown if the index is less than one or more than the number of control points.
  30. ]],
  31. related = {
  32. 'Curve:getPointCount',
  33. 'Curve:setPoint',
  34. 'Curve:addPoint',
  35. 'Curve:removePoint'
  36. }
  37. }