C# Determine when the line has been crossed

sorry no can you explain it to me in short