div.lua 672 B

1234567891011121314151617181920212223242526272829303132333435
  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 = 'Vec4',
  7. description = 'The other vector to divide the components by.'
  8. },
  9. x = {
  10. type = 'number',
  11. description = 'The number to divide each component by.'
  12. }
  13. },
  14. returns = {
  15. v = {
  16. type = 'Vec4',
  17. description = 'The original vector.'
  18. }
  19. },
  20. variants = {
  21. {
  22. arguments = { 'u' },
  23. returns = { 'v' }
  24. },
  25. {
  26. arguments = { 'x' },
  27. returns = { 'v' }
  28. }
  29. },
  30. related = {
  31. 'Vec4:add',
  32. 'Vec4:sub',
  33. 'Vec4:mul'
  34. }
  35. }