Bentley-Ottmann Algorithm is used to determined the intersection point of a list of lines. However as mentioned here in Wiki, there are a few drawbacks:
The Wikipedia article you linked to has a section on handling these special positions, which suggests these modifications to the basic algorithm: