Dota 2 Workshop Tools/Scripting/API/Vector.Length: 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">
a = Vec(1, 0, 0)
a = Vector(1, 0, 0)
len = a:length()
len = a:Length()
</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 Length()

Length of the Vector


Example
a = Vector(1, 0, 0)
len = a:Length()

Returns

float - Length of the Vector