Pythagoras and Circles intersetion

43 Views Asked by At

I am trying to learn computational geometry(basics) and here i am not understanding how this person got $$P2 = P0 + a ( P1 - P0 ) / d.$$ I tried to solve many times but i get wrong result.Can someone please explain me how he did this?

enter image description here

enter image description here