Local interaction between vorticity and shear in a perfect incompressible fluid