Garry's Mod Wiki

Vector:LengthSqr

Vector:LengthSqr

  number 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

1 number
Squared length of the vector

Special Pages


Wikis

?

Render Time: 74ms

DB GetPage 47
Generate Html 3
SaveChanges (1) 13
Render Body 0
Render Sidebar 9