Optics involves the reflection and refraction of light. Reflection occurs when light bounces off a surface, following the law of reflection where the angle of incidence equals the angle of reflection. Refraction is when light changes speed and direction when passing from one medium to another due to a change in index of refraction. Refraction is described by Snell's law, where the ratio of sines of the incident and refracted angles is equal to the ratio of the indices of refraction. Total internal reflection occurs when light passes from a higher to lower index of refraction beyond the critical angle and is completely reflected rather than refracted.