Magnetic anisotropy of U2Pd2In