Class EdgeIntersection
An EdgeIntersection represents a point on an edge which intersects with another edge. The intersection may either be a single point, or a line segment (in which case this point is the start of the line segment) The label attached to this intersection point applies to the edge from this point forwards, until the next intersection or the end of the edge. The intersection point must be precise.
Implements
Inherited Members
Namespace: NetTopologySuite.GeometriesGraph
Assembly: NetTopologySuite.dll
Syntax
public class EdgeIntersection : IComparable
Constructors
| Improve this Doc View SourceEdgeIntersection(Coordinate, Int32, Double)
Creates an instance of this class
Declaration
public EdgeIntersection(Coordinate coord, int segmentIndex, double dist)
Parameters
Type | Name | Description |
---|---|---|
Coordinate | coord | The point of intersection |
Int32 | segmentIndex | The index of the containing line segment in the parent edge |
Double | dist | The edge distance or this point along the containing line segment |
Properties
| Improve this Doc View SourceCoordinate
The point of intersection.
Declaration
public Coordinate Coordinate { get; }
Property Value
Type | Description |
---|---|
Coordinate |
Distance
The edge distance of this point along the containing line segment.
Declaration
public double Distance { get; }
Property Value
Type | Description |
---|---|
Double |
SegmentIndex
The index of the containing line segment in the parent edge.
Declaration
public int SegmentIndex { get; }
Property Value
Type | Description |
---|---|
Int32 |
Methods
| Improve this Doc View SourceCompare(Int32, Double)
Comparison with segment and distance.
Declaration
public int Compare(int segmentIndex, double dist)
Parameters
Type | Name | Description |
---|---|---|
Int32 | segmentIndex | The index of the containing line segment |
Double | dist | The distance of this point along the containing line segment |
Returns
Type | Description |
---|---|
Int32 |
|
CompareTo(Object)
Declaration
public int CompareTo(object obj)
Parameters
Type | Name | Description |
---|---|---|
Object | obj |
Returns
Type | Description |
---|---|
Int32 |
IsEndPoint(Int32)
Declaration
public bool IsEndPoint(int maxSegmentIndex)
Parameters
Type | Name | Description |
---|---|---|
Int32 | maxSegmentIndex |
Returns
Type | Description |
---|---|
Boolean |
ToString()
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
String |
Overrides
| Improve this Doc View SourceWrite(StreamWriter)
Declaration
public void Write(StreamWriter outstream)
Parameters
Type | Name | Description |
---|---|---|
StreamWriter | outstream |