Geometric model for interference and diffraction with waves and particles