A ray of light incident at an angle \(\theta\) in a rectangular prism grazes the…