Equation of a circle with endpoints