How military defense systems calculate trajectories to stop attacks.