Question #7765

I have two lines,

I need to calculate de intersect point of theses two lines.

Example:

line 1:

x: l1x1

y: l1y1

TO

x: l1x2

y: l1y2

and line 2 is:

x: l2x1

y: l2y1

TO

x: l2x2

y: l2y2

How to calculate the intersection point if exists?

I need to know for make a algorithm

I need to calculate de intersect point of theses two lines.

Example:

line 1:

x: l1x1

y: l1y1

TO

x: l1x2

y: l1y2

and line 2 is:

x: l2x1

y: l2y1

TO

x: l2x2

y: l2y2

How to calculate the intersection point if exists?

I need to know for make a algorithm

Expert's answer

## Comments

## Leave a comment