Returns true if the two Polyline intersect at least once.

Namespace: Reimers.Google.Map.Accessories
Assembly: Reimers.Google.Map (in Reimers.Google.Map.dll) Version: 5.3.95.699 (5.3.95.699)

Syntax

C#
public static bool Intersects(
	Polyline line1,
	Polyline line2,
	ref List<ICoordinates> intersectPoints
)

Parameters

line1
Type: Reimers.Google.Map..::..Polyline
The first line to examine.
line2
Type: Reimers.Google.Map..::..Polyline
The second line to examine.
intersectPoints
Type: System.Collections.Generic..::..List<(Of <(<'ICoordinates>)>)>%
A List<(Of <(<'T>)>)> holding the LatLng of the line intersections.

Return Value

A Boolean value indicating whether the lines intersect one or more times.

Remarks

If the two Polyline do not intersect intersectPoints will be set to null.

This function works equally well with Polygon as arguments.

See Also