2
0

normalize.lua 431 B

12345678910111213141516171819202122
  1. return {
  2. summary = 'Normalize the length of the vector to 1.',
  3. description = [[
  4. Adjusts the values in the vector so that its direction stays the same but its length becomes 1.
  5. ]],
  6. arguments = {},
  7. returns = {
  8. self = {
  9. type = 'Vec3',
  10. description = 'The normalized vector.'
  11. }
  12. },
  13. variants = {
  14. {
  15. arguments = {},
  16. returns = { 'self' }
  17. }
  18. },
  19. related = {
  20. 'Vec3:length'
  21. }
  22. }