equation of a circle passing through the diameter