distance.lua 412 B

123456789101112131415161718192021
  1. return {
  2. summary = 'Get the distance to another vector.',
  3. description = 'Returns the distance to another vector.',
  4. arguments = {
  5. {
  6. name = 'u',
  7. type = 'Vec4',
  8. description = 'The vector to measure the distance to.'
  9. }
  10. },
  11. returns = {
  12. {
  13. name = 'distance',
  14. type = 'number',
  15. description = 'The distance to `u`.'
  16. }
  17. },
  18. related = {
  19. 'Vec4:length'
  20. }
  21. }