if 2 lines intersect each other?

Could anyone help me with how to calculate if 2 line segments(which are in the same plane) intersect each other in a fast way?

Thanks

[This message has been edited by beginner620824 (edited 05-20-2003).]