Vector/LengthSqr

From Garry's Mod
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