Vector.Length2D

From GMod Wiki

Jump to: navigation, search
Function
Syntax Vector:Length2D( )
Description:
Get vector's length on the X and Y plane.
Returns: Float
In Object: Vector
Realm: NewerShared.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=Vector.Length2D]Vector.Length2D [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Examples

DescriptionGet a vector's length on X and Y
Used onNewerShared.png
Code
 
Vector( 100, 0, 100 ):Length2D()
 
Output100
Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox