Laws of Refraction
Snell's Law:
n21
=
sin i / sin r

where, n21 Refractive Index,