Dota 2 Workshop Tools/Scripting/API/Vector.Length2D: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Dota_Lebot push: Updated Page)
 
(Dota_Lebot push: Updated Page)
Line 14: Line 14:
;Example
;Example
<source lang="lua">
<source lang="lua">
v = Vec(1, 2, 3)
v = Vector(1, 2, 3)
print(v:Length2D())
print(v:Length2D())
</source>
</source>

Revision as of 02:27, 26 August 2014

Note.pngNote: This page is automatically generated. Any changes may be overwritten

Function Description

float Length2D()

Length of the Vector in the XY plane


Example
v = Vector(1, 2, 3)
print(v:Length2D())

Returns

float - No Description Set