The same principle that allows for stereo vision to percive distance can be used to calculate the distance to other planets.