line2circle implementation - known bug: disappearing ball