normalize(a)

Returns a unit vector in the direction of vector a.


See also abs 


Example


a = ( 1, 2, 3 )

1  2  3 

normalize( a )

0.2673  0.5345  0.8018