Well, it sounds like his point B is a constant anyway, so that shouldn't matter, right? If I'm not misunderstanding, he knows what two points he wants, and just wants to move between them on the click of a button.
EDIT: So like this, I'm thinking:
[attachment=0:14i9em1e][/attachment:14i9em1e]