cross-line-detection