Garry's Mod Wiki

Vector:Length2DSqr

Vector:Length2DSqr

number Vector:Length2DSqr()

Description

Returns the squared length of the vectors x and y value, x² + y².

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

Returns

1 number
Squared length of the vector in two dimensions

Special Pages


Wikis

?

Render Time: 54ms

DB GetPage 37
Generate Html 2
SaveChanges (1) 6
Render Body 0
Render Sidebar 6