Vector.Normalize

From GMod Wiki

Jump to: navigation, search
Function
Syntax Vector:Normalize( )
Description:
Will convert the vector into a normalized vector
Returns: Vector
In Object: Vector
Realm: NewerShared.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=Vector.Normalize]Vector.Normalize [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Examples

DescriptionNormalizes a vector
Used onNewerShared.png
Code
local vec = Vector( 300, 150, 150 ):Normalize();
OutputVector( 1, 0.5, 0.5 )


Additional Notes

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox