Ray diagrams are used in geometric optics which treats light as rays that travel in straight lines and change speed and/or direction when they encounter different transparent media.
The aim of a ray diagram is to demonstrate optical phenomena such as absorption, dispersion, polarization, reflection, refraction, scattering and transmission.
https://en.wikipedia.org/wiki/Ray_tracing_(physics)