N1 is required
Theta1 is required
N2 is required
Refraction angle from Snell.
Formula
theta2 = Math.asin(n1*Math.sin(theta1)/n2)