| 123456789101112131415161718192021 |
- return {
- summary = 'Get the length of the vector.',
- description = 'Returns the length of the vector.',
- arguments = {},
- returns = {
- {
- name = 'length',
- type = 'number',
- description = 'The length of the vector.'
- }
- },
- notes = [[
- The length is equivalent to this:
- math.sqrt(v.x * v.x + v.y * v.y)
- ]],
- related = {
- 'Vec2:normalize',
- 'Vec2:distance'
- }
- }
|