Transverse and longitudinal Bose-Einstein correlations in hadronic Z$^0$ decays