JTS Core 1.17.1
Packages
Classes
Search
About
Top
DirectedEdgeStar()
add(DirectedEdge): void
remove(DirectedEdge): void
iterator(): Iterator
getDegree(): int
getCoordinate(): Coordinate
getEdges(): List
getIndex(Edge): int
getIndex(DirectedEdge): int
getIndex(int): int
getNextEdge(DirectedEdge): DirectedEdge
getNextCWEdge(DirectedEdge): DirectedEdge
Bottom
Source
Classic
org.locationtech.jts.planargraph
Class DirectedEdgeStar
Hierarchy:
Object
, DirectedEdgeStar
public class DirectedEdgeStar
A sorted collection of
DirectedEdge
s which leave a
Node
in a
PlanarGraph
.
Other
version: 1.7
public
DirectedEdgeStar()
Constructs a DirectedEdgeStar with no edges.
public
void add(
DirectedEdge
de)
Adds a new member to this DirectedEdgeStar.
public
void remove(
DirectedEdge
de)
Drops a member of this DirectedEdgeStar.
public
Iterator
iterator()
Returns an Iterator over the DirectedEdges, in ascending order by angle with the positive x-axis.
public
int getDegree()
Returns the number of edges around the Node associated with this DirectedEdgeStar.
public
Coordinate
getCoordinate()
Returns the coordinate for the node at which this star is based
public
List
getEdges()
Returns the DirectedEdges, in ascending order by angle with the positive x-axis.
public
int getIndex(
Edge
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(
DirectedEdge
dirEdge)
Returns the zero-based index of the given DirectedEdge, after sorting in ascending order by angle with the positive x-axis.
public
int getIndex(int i)
Returns value of i modulo the number of edges in this DirectedEdgeStar (i.e. the remainder when i is divided by the number of edges)
Parameters:
i - i an integer (positive, negative or zero)
public
DirectedEdge
getNextEdge(
DirectedEdge
dirEdge)
Returns the
DirectedEdge
on the left-hand (CCW) side of the given
DirectedEdge
(which must be a member of this DirectedEdgeStar).
public
DirectedEdge
getNextCWEdge(
DirectedEdge
dirEdge)
Returns the
DirectedEdge
on the right-hand (CW) side of the given
DirectedEdge
(which must be a member of this DirectedEdgeStar).