The incident light ray will divide itself upon striking the new medium: some of the ray will reflect, and some of it will refract. The reflection of a light ray is simple - it is no different than what happens to a billiard ball when it strikes a band. Just as a billiard ball rebounds off of the flat border with an angle equal to that which it struck with, the angle of the reflected ray is equal to the angle of the incident one.
However, light can also permeate the new medium (an ability that no billiard ball possesses). The portion of the light that passes through the boundary, continuing its travels into medium 2, is referred to as the refracted ray. As shown in the figure below, the angle of each ray is measured with respect to an invisible 'normal' line, which is drawn perpendicular to the surface.