Intersection between two lines

Hi all,

Is it possible to know if two straight lines can intersect? 

I need to know if the extension of two lines (A-B and C-D) intersect at a point. Is there any function or method?

Thanks in advance