vec_rotate() isn't hard to predict.
vec_for_ent() does the same but also takes position and scale into account.

you should describe what exactly you are trying to do. what do you need this for? then it is easier to help.