I have two lines:
line1=InfiniteLine[{{0,1},{4,2}}]
line2=InfiniteLine[{{1,2},{4,8}}]
I used RegionIntersection to get intersection of these lines, but I can't get the coordinates of the point in the intersection.
RegionIntersection[line1,line2]
Also, I have other two lines and I want their intersection. Later, I want to draw line between these two intersections. For example,
line3:=InfiniteLine[{{0,2},{2,5}}]
line4:=InfiniteLine[{{7,1},{3,2}}]
If the intersection of first one is P, and second one Q, I want line PQ. With RegionIntersection I can draw P and Q, but with InfiniteLine I can't draw the line between P i Q. I need their coordinates, or exist other way? I just want to draw the line between them.
RegionIntersection[line1,line2]
works fine for me. You miss a closing]
in the definition ofline1
$\endgroup$