I think you could do a dot product of two unit vectors(direction) to check if they are in the same direction. Negative if they arent, postive if they are. You might need to do some tests on these as i am a math idiot. Watch this video around 1.46.