• VectorToLocal[bnum, vector] returns the local direction vector of vector, in the coordinate system of body bnum.
• When called with a vector specified in global coordinates, VectorToLocal is essentially the inverse function of Direction.
• See also: PointToLocal.
Load the Modeler2D package.
Here is the local direction vector of a vector given in global coordinates. It is then converted back to global coordinates and reduced to its original form.