Difference between revisions of "Dota 2 Workshop Tools/Scripting/API/Vector.Length"

From Valve Developer Community
Jump to: navigation, search
(Dota_Lebot push: Updated Page)
 
(2 intermediate revisions by the same user not shown)
Line 6: Line 6:
  
  
''' float length() '''
+
''' float Length() '''
  
 
''Length of the Vector''
 
''Length of the Vector''
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>
  

Latest revision as of 09:27, 26 August 2014

Note: 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