Raycast in both directions along each edge