When a ray is refracted from one medium into another