I am not sure I understood what you're trying to achieve correctly. If what you want is to know the direction between point A and point B, here are two solutions:
Let's say your point A is at (100,100) and the point B(mouse cursor) is at (200,200) and you want to know programatically what is the direction the point A has to follow to meet point B.
You can get the radian angle between the two with this plug and play function:
float computeAngle(float ax, float ay, float bx, float by){
return atan2((by - ay), (bx - ax));
};
Then compute the direction vector as (cos(angle), sin(angle)).
Or simpler, whenever you have two points, A and B, (A - B) gives you the direction vector between the two. Of course you may need to normalize that resulting vector between using it for calculations!
Hope this helps..