Vector.GetNormal

From GMod Wiki

(Redirected from Vector.GetNormalized)
Jump to: navigation, search
Function
Syntax Vector:GetNormal( )
Description:
Returns a copy of the vector with a length of exactly 1.
Returns: Vector
In Object: Vector
Realm: NewerShared.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=Vector.GetNormal]Vector.GetNormal [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