Dota 2 Workshop Tools/Scripting/API/Vector.Length: Difference between revisions
< Dota 2 Workshop Tools | Scripting | API
Jump to navigation
Jump to search
RoyAwesome (talk | contribs) |
RoyAwesome (talk | contribs) (fixing lowercase issue) |
||
Line 6: | Line 6: | ||
''' float | ''' float Length() ''' | ||
''Length of the Vector'' | ''Length of the Vector'' | ||
Line 15: | Line 15: | ||
<source lang="lua"> | <source lang="lua"> | ||
a = Vec(1, 0, 0) | a = Vec(1, 0, 0) | ||
len = a: | len = a:Length() | ||
</source> | </source> | ||
Revision as of 16:52, 13 August 2014

Function Description
float Length()
Length of the Vector
- Example
a = Vec(1, 0, 0)
len = a:Length()
Returns
float - Length of the Vector