Class DirectedEdgeStar
- Namespace
- NetTopologySuite.Planargraph
- Assembly
- NetTopologySuite.dll
A sorted collection of DirectedEdge
s which leave a Node
in a PlanarGraph
.
public class DirectedEdgeStar
- Inheritance
-
DirectedEdgeStar
- Inherited Members
Constructors
DirectedEdgeStar()
public DirectedEdgeStar()
Properties
Coordinate
Returns the coordinate for the node at which this star is based.
public Coordinate Coordinate { get; }
Property Value
Degree
Returns the number of edges around the Node associated with this DirectedEdgeStar.
public int Degree { get; }
Property Value
Edges
Returns the DirectedEdges, in ascending order by angle with the positive x-axis.
public IList<DirectedEdge> Edges { get; }
Property Value
Methods
Add(DirectedEdge)
Adds a new member to this DirectedEdgeStar.
public void Add(DirectedEdge de)
Parameters
de
DirectedEdge
GetEnumerator()
Returns an Iterator over the DirectedEdges, in ascending order by angle with the positive x-axis.
public IEnumerator<DirectedEdge> GetEnumerator()
Returns
GetIndex(DirectedEdge)
Returns the zero-based index of the given DirectedEdge, after sorting in ascending order by angle with the positive x-axis.
public int GetIndex(DirectedEdge dirEdge)
Parameters
dirEdge
DirectedEdge
Returns
GetIndex(Edge)
Returns the zero-based index of the given Edge, after sorting in ascending order by angle with the positive x-axis.
public int GetIndex(Edge edge)
Parameters
edge
Edge
Returns
GetIndex(int)
Returns the remainder when i is divided by the number of edges in this DirectedEdgeStar.
public int GetIndex(int i)
Parameters
i
int
Returns
GetNextCWEdge(DirectedEdge)
Returns the DirectedEdge on the right-hand (CW) side of the given DirectedEdge (which must be a member of this DirectedEdgeStar).
public DirectedEdge GetNextCWEdge(DirectedEdge dirEdge)
Parameters
dirEdge
DirectedEdge
Returns
GetNextEdge(DirectedEdge)
Returns the DirectedEdge on the left-hand side of the given DirectedEdge (which must be a member of this DirectedEdgeStar).
public DirectedEdge GetNextEdge(DirectedEdge dirEdge)
Parameters
dirEdge
DirectedEdge
Returns
Remove(DirectedEdge)
Drops a member of this DirectedEdgeStar.
public void Remove(DirectedEdge de)
Parameters
de
DirectedEdge