According to the Huygens principle, the light is made up of waves that vibrate up and down in the direction perpendicular to the direction in which the light travels.
Let an object is placed in front of a plane mirror as shown in the figure below.
Figure (1)
Object is placed at point O and a circle touching mirror at
Figure (2)
Here
Hence, the distance between the rays is same. Thus, the object placed in front of the mirror creates a virtual image such that the image distance is equal to the object distance.