Method for pipi or Kpi Phase-Shift Analysis