mirror Algorithm

Mirrors are also used to view other items that are not directly visible because of obstructions; examples include rear-view mirrors in vehicles, security mirrors in or around buildings, and dentist's mirrors. This property, named specular reflection, distinguishes a mirror from objects that scatter light in many directions (such as flat-white paint), let it pass through them (such as a lens or prism), or absorb it.

mirror source code, pseudocode and analysis