Line-Crossing Detection