if the endpoints are there, that means that segment with those endpoints is the diameter of the circle, and that also means that the midpoint of that diameter is the center of the circle.
it also means that the distance from the midpoint to either endpoint, is the radius of the circle.
![\bf ~~~~~~~~~~~~\textit{middle point of 2 points } \\\\ (\stackrel{x_1}{2}~,~\stackrel{y_1}{-5})\qquad (\stackrel{x_2}{8}~,~\stackrel{y_2}{-1}) \qquad \left(\cfrac{ x_2 + x_1}{2}~~~ ,~~~ \cfrac{ y_2 + y_1}{2} \right) \\\\\\ \left( \cfrac{8+2}{2}~~,~~\cfrac{-1-5}{2} \right)\implies (5,-3)\impliedby center \\\\[-0.35em] \rule{34em}{0.25pt}](https://img.qammunity.org/2019/formulas/mathematics/college/28uibpcuwswjmaebi0iv8v983j4lspr1w5.png)
![\bf ~~~~~~~~~~~~\textit{distance between 2 points} \\\\ \stackrel{midpoint}{(\stackrel{x_1}{5}~,~\stackrel{y_1}{-3})}\qquad \stackrel{endpoint}{(\stackrel{x_2}{8}~,~\stackrel{y_2}{-1})}\qquad \qquad d = √(( x_2- x_1)^2 + ( y_2- y_1)^2) \\\\\\ \stackrel{radius}{r}=√([8-5]^2+[-1-(-3)]^2)\implies r=√((8-5)^2+(-1+3)^2) \\\\\\ r=√(3^2+2^2)\implies r=√(13) \\\\[-0.35em] \rule{34em}{0.25pt}](https://img.qammunity.org/2019/formulas/mathematics/college/tpo7z4dh4nmksherh18bxt2bvbc5fcgi1m.png)
![\bf \textit{equation of a circle}\\\\ (x- h)^2+(y- k)^2= r^2 \qquad center~~(\stackrel{5}{ h},\stackrel{-3}{ k})\qquad \qquad radius=\stackrel{√(13)}{ r} \\[2em] [x-5]^2+[y-(-3)]^2=(√(13))^2\implies \boxed{(x-5)^2+(y+3)^2=13}](https://img.qammunity.org/2019/formulas/mathematics/college/a053cc0joquofgu38rgyfu5hd6quczlkot.png)