Click or drag to resize

LineToolsCalculateIntersectionPoint Method

Calculate intersection point between two line segments.

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 Coordinate CalculateIntersectionPoint(
	Coordinate c1,
	Coordinate c2,
	Coordinate c3,
	Coordinate c4
)

Parameters

c1
Type: DHI.Mike1D.Generic.Spatial.GeometryCoordinate
First point in first line
c2
Type: DHI.Mike1D.Generic.Spatial.GeometryCoordinate
Second point in first line
c3
Type: DHI.Mike1D.Generic.Spatial.GeometryCoordinate
First point in second line
c4
Type: DHI.Mike1D.Generic.Spatial.GeometryCoordinate
Second point in second line

Return Value

Type: Coordinate
Intersection point
See Also