Returns the nearest approach distance between the temporal point and the spatio-temporal box (internal function)