The laws of refraction: Snell’s laws
If light travels from material 1 with index of refraction n1 to material 2 with index of refraction n2 the following laws determine the direction of the refracted ray:
normal to the incidence point and the refracted ray are all in one plane