Snell's law is a formula used to describe the relationship between the angles of incidence and refraction, when referring to light or other waves passing through a boundary between two different isotropic media, such as water, glass or air.
In optics, the law is used in ray tracing to compute the angles if incidence or refraction, and in experimental optics to find the refractive index of a material
Snell's law states that the ratio of the sines of the angles of incidence and refraction is equivalent to the ratio of phase velocities in the two media, or equivalent to the reciprocal of the ratio of the indices of refraction:
sinθ2sinθ1=v2v1=μ1μ2
So, μ1sinθ1=μ2sinθ2
with each θ as the angle measured from the normal of the boundary, v as the velocity of light in the respective medium and μ as the refractive index of the respective medium.