For a light ray hitting a refractive surface, calculates the minimum angle of incidence for total reflection as a function of the refraction indexes of the first and second media.