The traffic collision and avoidance system (TCAS) interrogates other airplanes to get altitude, range, and bearing data via its directional antenna.