unpack.lua 592 B

1234567891011121314151617181920212223242526272829303132
  1. return {
  2. summary = 'Get the components of the vector.',
  3. description = 'Returns the 4 components of the vector as numbers.',
  4. arguments = {},
  5. returns = {
  6. x = {
  7. type = 'number',
  8. description = 'The x value.'
  9. },
  10. y = {
  11. type = 'number',
  12. description = 'The y value.'
  13. },
  14. z = {
  15. type = 'number',
  16. description = 'The z value.'
  17. },
  18. w = {
  19. type = 'number',
  20. description = 'The w value.'
  21. }
  22. },
  23. variants = {
  24. {
  25. arguments = {},
  26. returns = { 'x', 'y', 'z', 'w' }
  27. }
  28. },
  29. related = {
  30. 'Vec4:set'
  31. }
  32. }