Class EdgeEnd
Models the end of an edge incident on a node.
Assembly: NetTopologySuite.dll
Syntax
public class EdgeEnd : IComparable<EdgeEnd>
Constructors
|
Improve this Doc
View Source
EdgeEnd(Edge)
Declaration
protected EdgeEnd(Edge edge)
Parameters
Type |
Name |
Description |
Edge |
edge |
|
|
Improve this Doc
View Source
EdgeEnd(Edge, Coordinate, Coordinate)
Declaration
public EdgeEnd(Edge edge, Coordinate p0, Coordinate p1)
Parameters
|
Improve this Doc
View Source
EdgeEnd(Edge, Coordinate, Coordinate, Label)
Declaration
public EdgeEnd(Edge edge, Coordinate p0, Coordinate p1, Label label)
Parameters
Properties
|
Improve this Doc
View Source
Coordinate
Declaration
public Coordinate Coordinate { get; }
Property Value
|
Improve this Doc
View Source
DirectedCoordinate
Declaration
public Coordinate DirectedCoordinate { get; }
Property Value
|
Improve this Doc
View Source
Dx
Declaration
public double Dx { get; }
Property Value
|
Improve this Doc
View Source
Dy
Declaration
public double Dy { get; }
Property Value
|
Improve this Doc
View Source
Edge
Declaration
public Edge Edge { get; protected set; }
Property Value
|
Improve this Doc
View Source
Label
Declaration
public Label Label { get; protected set; }
Property Value
|
Improve this Doc
View Source
Node
Declaration
public Node Node { get; set; }
Property Value
|
Improve this Doc
View Source
Quadrant
Declaration
[Obsolete("Use QuadrantEx")]
public int Quadrant { get; }
Property Value
|
Improve this Doc
View Source
QuadrantEx
Gets a value indicating the Quadrant
this EdgeEnd
lies in.
Declaration
public Quadrant QuadrantEx { get; }
Property Value
Methods
|
Improve this Doc
View Source
CompareDirection(EdgeEnd)
Implements the total order relation:
a has a greater angle with the positive x-axis than b.
Using the obvious algorithm of simply computing the angle is not robust,
since the angle calculation is obviously susceptible to round off.
A robust algorithm is:
- first compare the quadrant. If the quadrants
are different, it it trivial to determine which vector is "greater".
- if the vectors lie in the same quadrant, the computeOrientation function
can be used to decide the relative orientation of the vectors.
Declaration
public int CompareDirection(EdgeEnd e)
Parameters
Type |
Name |
Description |
EdgeEnd |
e |
An EdgeEnd
|
Returns
|
Improve this Doc
View Source
CompareTo(EdgeEnd)
Declaration
public int CompareTo(EdgeEnd e)
Parameters
Returns
|
Improve this Doc
View Source
ComputeLabel(IBoundaryNodeRule)
Subclasses should override this if they are using labels
Declaration
public virtual void ComputeLabel(IBoundaryNodeRule boundaryNodeRule)
Parameters
|
Improve this Doc
View Source
Init(Coordinate, Coordinate)
Declaration
protected void Init(Coordinate p0, Coordinate p1)
Parameters
|
Improve this Doc
View Source
ToString()
Declaration
public override string ToString()
Returns
Overrides
|
Improve this Doc
View Source
Write(StreamWriter)
Declaration
public virtual void Write(StreamWriter outstream)
Parameters
Implements