## LinesIntersect2D

**Syntax**

bool LinesIntersect2D(MapWinGeoProc.Globals.Line S1, System.Boolean S1_isRay, MapWinGeoProc.Globals.Line S2, System.Boolean S2_isRay, ref MapWinGIS.Point intersectPoint)

**Summary**

Calculates the intersection point between two lines.

**Parameters**

S1 |
First line segment. |

S1_isRay |
True if line 1 is a ray, false if it's a finite segment. |

S2 |
Second line segment. |

S2_isRay |
True if line 2 is a ray, false if it's a finite segment. |

intersectPoint |
The intersection point between segments 1 and 2. |

**Returns**

True if a valid intersect point exists, false if the lines do not cross.

Visual Basic Net 2005 Example
Implementation Code

Visual C# 2005 Example Implementation
Code

Back to
Globals