A detailed discussion of the phenomenon of refraction, including: refraction as a boundary behavior , refraction and the distortion of images , the cause of refraction , optical density and light speed , and two general rules about the direction of bending .