with centres alternately at A and B