normalize()
Purpose
Normalize a vector
Description
Gets the normalized vector of a specified vector which is a vector in the same direction but with length 1 (also called the unit vector)
Syntax
result = normalize( vector )
Arguments
result length of the specified vector
vector normalized vector
Example
result = normalize( { 3, 4, 5 } )
print( "{ ", result.x, ",", result.y, ",", result.z, " }")
print( length( result ) ) // prints 1.000000
update()
sleep( 3 )
Associated Commands