Change the name of function to refraction_angle and fix a typo [skip ci]