getPoint.lua 877 B

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