Click or drag to resize

LineToolsDoLineSegmentsIntersect Method (ICoordinate, ICoordinate, ICoordinate, ICoordinate)

OverLoad of DoLineSegmentsIntersect(x1, y1, x2, y2, x3, y3, x4, y4)

Namespace:  DHI.Mike1D.Generic.Spatial.Algorithm
Assembly:  DHI.Mike1D.Generic (in DHI.Mike1D.Generic.dll) Version: 16.0.0.0 (11.1.1.1111)
Syntax
C#
public static bool DoLineSegmentsIntersect(
	ICoordinate p1,
	ICoordinate p2,
	ICoordinate p3,
	ICoordinate p4
)

Parameters

p1
Type: DHI.Mike1D.Generic.Spatial.GeometryICoordinate
First point in first line
p2
Type: DHI.Mike1D.Generic.Spatial.GeometryICoordinate
Second point in first line
p3
Type: DHI.Mike1D.Generic.Spatial.GeometryICoordinate
First point in second line
p4
Type: DHI.Mike1D.Generic.Spatial.GeometryICoordinate
Second point in second line

Return Value

Type: Boolean
true if the line segmenst intersects otherwise false
See Also