div.lua 910 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. return {
  2. summary = 'Divides the vector by a vector or a number.',
  3. description = 'Divides the vector by a vector or a number.',
  4. arguments = {
  5. u = {
  6. type = 'Vec3',
  7. description = 'The other vector to divide the components by.'
  8. },
  9. x = {
  10. type = 'number',
  11. description = 'A value to divide x component by.'
  12. },
  13. y = {
  14. type = 'number',
  15. default = 'x',
  16. description = 'A value to divide y component by.'
  17. },
  18. z = {
  19. type = 'number',
  20. default = 'x',
  21. description = 'A value to divide z component by.'
  22. }
  23. },
  24. returns = {
  25. v = {
  26. type = 'Vec3',
  27. description = 'The original vector.'
  28. }
  29. },
  30. variants = {
  31. {
  32. arguments = { 'u' },
  33. returns = { 'v' }
  34. },
  35. {
  36. arguments = { 'x', 'y', 'z' },
  37. returns = { 'v' }
  38. }
  39. },
  40. related = {
  41. 'Vec3:add',
  42. 'Vec3:sub',
  43. 'Vec3:mul'
  44. }
  45. }