forked from: CircleFitting

