Vector/Length

From Garry's Mod
Revision as of 15:37, 27 February 2015 by !cake (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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