Writing an equation of a circle given its center and a point on the circle