Refraction of Light Diagram

45°
θ₁ = 45° θ₂ = 0°

Program Functions:

This program demonstrates the refraction process of a light ray at the interface between two different materials. You can select two different materials, including common materials, laser crystals, and nonlinear crystals, and adjust the incident angle. The program calculates the refraction angle using Snell's law based on the selected material types and incident angle, and displays the paths of the incident and refracted rays in the diagram.

You can also see the values of the incident angle and refraction angle, as well as the names and refractive indices of the two materials. This is very helpful for learning and understanding the phenomenon of light refraction.

Related Formula:

Snell's law:
n1 sin(theta1) = n2 sin(theta2)
Where n1 and n2 are the refractive indices of the first and second materials, respectively; theta1 is the incident angle, and theta2 is the refracted angle.