Vector/Length

From Garry's Mod
Jump to: navigation, search
 Vector:Length( )

Contents

Description

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

Returns

number

Length of the vector.

Examples

Example

Gets the length of the vector.

print(Vector(15, 16, 17):Length())

Output:

27.748874664307.
Personal tools
Navigation