I found this questions saying
Determine the equation of the circle whose center is the point $(1,2)$ and touches the line $y-x+1=0$
Now I am not exactly sure if this means that the line touches the center or it is a tangent, but assuming it touches the center. Is there like some unique way(formula) for solving this by only knowing the midpoint (center) on the given line and using system of equation or something similar to find the two points from which I could get the radius.
If there is a much easier way please enlighten me, always had trouble dealing with circles.
Thanks in advance for replies.