The elastic scattering of π+ and π− by 16O and 40Ca across the (3,3) resonance