I'm working on a programming assignment, and my Trig is not what it used to be...

I know the following. Xpos,yPos,Xorigin,YOrigin, and the Radius of the Circle. However the Origin points are constantly moving. Wondering what the best way to find out x1,y1 and x2,y2 would be.

Thankyou in advance.