Separate IR, Visible, Ultraviolet light

It was measured thousands of times.

The distances are calculated by the measurements.
For very far away objects, parallax does not work.