Electromagnetic waves emanating from a point A (in air) are incident on a rectangular block of material M and emerge from the other side as shown. The angles and are angles of incidence and refraction when the wave travels from air to the medium. Such paths for the rays are possible
