# Vector/Length2D

From Garry's Mod

(Difference between revisions)

(Created page with "{{Func |Name=Length2D |Parent=Vector |Description=Returns the length of the vector. |Realm=Shared |IsClass=Yes }} {{Ret |type=number |desc= length }}") |
m (Formula layout, replaced non-alphanumerics.) |
||

(2 intermediate revisions by 2 users not shown) | |||

Line 2: | Line 2: | ||

|Name=Length2D | |Name=Length2D | ||

|Parent=Vector | |Parent=Vector | ||

− | |Description=Returns the length of the vector. | + | |Description=Returns the length of the vector in two dimensions, without the Z axis. |

|Realm=Shared | |Realm=Shared | ||

|IsClass=Yes | |IsClass=Yes | ||

Line 8: | Line 8: | ||

{{Ret | {{Ret | ||

|type=number | |type=number | ||

− | |desc= | + | |desc=Length of the vector in two dimensions, √<span style="text-decoration:overline;"> x² + y² </span> |

}} | }} |

## Latest revision as of 14:51, 2 February 2015

# Description

Returns the length of the vector in two dimensions, without the Z axis.

# Returns

Length of the vector in two dimensions, √ x² + y²