I think it depends on the scale of A, B, and the straightness of the presumed path, relative to the wavelength. If I block a laser beam crossing a room, I won't expect it to go around my hand and hit the aligned target anyway. But for a radio beam, it doesn't notice my hand at all.
FM radio will ooze around buildings and under bridges; GPS signals won't. But while the shadow of a building, cast from a point-source of visible light would be sharp, the GPS signal would fade out over a few inches inside that shadow.