arim.model.snell_angles#

arim.model.snell_angles(incidents_angles, c_incident, c_refracted)[source]#

Returns the angles of the refracted rays according to Snell–Descartes law:

c1/c2 = sin(alpha1)/sin(alpha2)

In case of total internal reflection (incident angles above the critical angles), the output depends on the datatype of the incident angle. If the incident angle is real, the refracted angle is “not a number”. If the incident angle is complex, the refracted angle is complex (imagery part not null). The reason is that either the real or the complex arcsine function is used.