Thin two-dimensional metamaterial layers that allow or inhibit the propagation of electromagnetic waves in desired directions.