Table of Contents

Class DirectedEdgeStar

Namespace
NetTopologySuite.Planargraph
Assembly
NetTopologySuite.dll

A sorted collection of DirectedEdges 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

Coordinate

Degree

Returns the number of edges around the Node associated with this DirectedEdgeStar.

public int Degree { get; }

Property Value

int

Edges

Returns the DirectedEdges, in ascending order by angle with the positive x-axis.

public IList<DirectedEdge> Edges { get; }

Property Value

IList<DirectedEdge>

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

IEnumerator<DirectedEdge>

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

int

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

int

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

int

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

DirectedEdge

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

DirectedEdge

Remove(DirectedEdge)

Drops a member of this DirectedEdgeStar.

public void Remove(DirectedEdge de)

Parameters

de DirectedEdge