Howdy, thanks for asking. Here's a diagram to help illustrate:
In the image above, both the Marauders and the Imperial Halberdiers are behind the front edge of the Imperial Swordsmen (light gray area). So the Swordsmen currently do not have line of sight to either of those units.