A Projective Approach to Electromagnetic Propagation in Complex Environments