Light and mirrors
A shadow is a second projection
The construction that puts a shadow on the ground is the construction that puts the scene on the picture plane, with the lamp where the eye was. Shadow drawing is taught as a separate set of recipes and it is one operation with the centre moved, which is why the same code draws both.
Where shadows vanish
The shadows of parallel posts under the sun meet at a point, and that point must lie on the horizon. Under a lamp they meet at the lamp's foot instead. Both are checkable in any photograph, and a picture whose shadows fail the check was not lit by anything.
A mirror is a second camera
Reflect the scene and photograph it, or reflect the camera and photograph the scene. The two routes disagree by 906 px and agree to 6 × 10⁻¹⁴ once one axis of the image is reversed — which is the whole of why a mirror is said to swap left and right, written down.