straightLinesIntersectLngLatAlt

fun straightLinesIntersectLngLatAlt(line1Start: LngLatAlt, line1End: LngLatAlt, line2Start: LngLatAlt, line2End: LngLatAlt): LngLatAlt?

Check if straight lines defined by line1Start, line1End, line2Start, line2End intersect and if they do return the intersection coordinates

Return

true if the lines intersect each other.

Parameters

line1Start

Start of line1 as LngLatAlt.

line1End

End of line1 as LngLatAlt.

line2Start

Start of line2 as LngLatAlt.

line2End

End of line2 as LngLatAlt.