Mirrors and lenses reflect and refract light to form real or virtual images. Reflection off flat surfaces follows the law that the angle of incidence equals the angle of reflection. Concave mirrors can form real or virtual images depending on the position of the object. Convex lenses diverge light rays to form reduced virtual images, while concave lenses converge light to form real images that can be magnified or reduced. The eye focuses light using a convex lens, and conditions like nearsightedness and farsightedness occur when the eye is too long or short.