normalize.lua 359 B

1234567891011121314151617
  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. {
  9. name = 'v',
  10. type = 'Vec3',
  11. description = 'The original vector.'
  12. }
  13. },
  14. related = {
  15. 'Vec3:length'
  16. }
  17. }