Transverse and longitudinal waves