Can you make a vector to a local vector?

Can you make a vector to a local vector? to stop problems when the item rotates.

http://wiki.garrysmod.com/page/Entity/WorldToLocal perhaps?