Go to: Synopsis. Return value. MEL examples.

Synopsis

unit vector

unit is NOT undoable, NOT queryable, and NOT editable.

This command returns the normalized vector: a vector pointing in the same direction as the argument but with a length of one.

Return value

vectorNormalized vector

MEL examples

unit <<1,1,1>>;
// Result: <<0.57735, 0.57735, 0.57735>>  //