Garry's Mod Wiki

Vector:Length2D

Vector:Length2D

  number Vector:Length2D()

Description

Returns the length of the vector in two dimensions, without the Z axis.

This is a relatively expensive process since it uses the square root. It is recommended that you use Vector:Length2DSqr whenever possible.

Returns

1 number
Length of the vector in two dimensions, √(x² + y²)

Special Pages


Wikis

?

Render Time: 44ms

DB GetPage 28
Generate Html 2
SaveChanges (1) 5
Render Body 0
Render Sidebar 7