Vector/LengthSqr

From Garry's Mod
Revision as of 15:18, 2 February 2015 by TheFreeman193 (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
 Vector:LengthSqr( )

Description

Returns the squared length of the vector, x² + y² + z².

This is faster than Vector:Length as calculating the square root is an expensive process.

Returns

number

Squared length of the vector
Personal tools
Navigation