Add function to calculate transmitted vector after refraction [skip ci]