Garry's Mod Wiki

Vector:Length

number Vector:Length()

Description

Returns the Euclidean length of the vector: √x² + y² + z² 

Returns

1 number
Length of the vector.

Example

Gets the length of the vector.

print(Vector(15, 16, 17):Length())
Output: 27.748874664307.

Page Links


Special Pages


Wikis

?

Render Time: 31ms

DB GetPage 4
Generate Html 3
SaveChanges 9
Render Body 0
Render Sidebar 12