Writing an equation of a circle given its center and radius or diameter