| 1234567891011121314151617181920212223242526272829303132333435363738 |
- return {
- summary = 'Get the distance to another vector.',
- description = 'Returns the distance to another vector.',
- arguments = {
- u = {
- type = 'Vec2',
- description = 'The vector to measure the distance to.'
- },
- x = {
- type = 'number',
- description = 'A value of x component to measure distance to.'
- },
- y = {
- type = 'number',
- description = 'A value of y component to measure distance to.'
- }
- },
- returns = {
- distance = {
- type = 'number',
- description = 'The distance to `u`.'
- },
- },
- variants = {
- {
- arguments = { 'u' },
- returns = { 'distance' }
- },
- {
- arguments = { 'x', 'y' },
- returns = { 'distance' }
- }
- },
- related = {
- 'Vec2:angle',
- 'Vec2:length'
- }
- }
|