$${\frac{n_C}{n_f} = \sin \alpha_{cr} = \cos \theta_r}$$