Returns a temporal Boolean that states whether the temporal points are within the given distance (internal function)