Returns a unit vector (a vector of length 1) in the same direction as the given vector . Note that this process is sometimes referred to as "normalization".
unitize ( v As Vector ) As Vector
Argument | Type | Description |
---|---|---|
v | Vector | Input vector to be unitized. |
Intent >unitize(Vector(10000,0,0)) --> Vector_(1.0, 0.0, 0.0, WorldFrame())
Intent >unitize(Vector(1,1,0)) --> Vector_(0.70710678118655, 0.70710678118655, 0.0, WorldFrame())