## Intersection

**Syntax**

int Intersection(MapWinGeoProc.Topology2D.Segment Seg, ref MapWinGeoProc.Topology2D.Point CrossingPoint, ref MapWinGeoProc.Topology2D.Segment Overlap)

**Summary**

Returns the point where two segments intersect, if any exists.

**Parameters**

Seg |
The segment to compare with this segment for an intersection. |

CrossingPoint |
If the output is a single point, this will store that point. |

Overlap |
If the output is an overlapping segment, this will store the segment. |

**Returns**

Integer clarifying the return situation. Returns 0= disjoint (no intersection) 1= intersect in unique point CrossingPoint 2= overlap in segment Overlap

Visual Basic Net 2005 Example
Implementation Code

Visual C# 2005 Example Implementation
Code

Back
to Segment