Vector.Length2DSqr

From GMod Wiki

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



Examples

DescriptionGet a vector's squared length on X and Y
Used onNewerShared.png
Code
print("Squared vector length in 2D is " .. Vector( 100, 0, 100 ):Length2DSqr())
OutputSquared vector length in 2D is 10000


See Also

Vector.Length2D

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox