distance to the horizon from object