org.apache.commons.math3.geometry.euclidean.twod
private static class PolygonsSet.Vertex extends Object
Modifier and Type | Field and Description |
---|---|
private PolygonsSet.Edge |
incoming
Incoming edge.
|
private List<Line> |
lines
Lines bound with this vertex.
|
private Vector2D |
location
Vertex location.
|
private PolygonsSet.Edge |
outgoing
Outgoing edge.
|
Constructor and Description |
---|
PolygonsSet.Vertex(Vector2D location)
Build a non-processed vertex not owned by any node yet.
|
Modifier and Type | Method and Description |
---|---|
void |
bindWith(Line line)
Bind a line considered to contain this vertex.
|
PolygonsSet.Edge |
getIncoming()
Get incoming edge.
|
Vector2D |
getLocation()
Get Vertex location.
|
PolygonsSet.Edge |
getOutgoing()
Get outgoing edge.
|
void |
setIncoming(PolygonsSet.Edge incoming)
Set incoming edge.
|
void |
setOutgoing(PolygonsSet.Edge outgoing)
Set outgoing edge.
|
Line |
sharedLineWith(PolygonsSet.Vertex vertex)
Get the common line bound with both the instance and another vertex, if any.
|
private final Vector2D location
private PolygonsSet.Edge incoming
private PolygonsSet.Edge outgoing
public PolygonsSet.Vertex(Vector2D location)
location
- vertex locationpublic Vector2D getLocation()
public void bindWith(Line line)
line
- line to bind with this vertexpublic Line sharedLineWith(PolygonsSet.Vertex vertex)
When two vertices are both bound to the same line, this means they are already handled by node associated with this line, so there is no need to create a cut hyperplane for them.
vertex
- other vertex to check instance againstpublic void setIncoming(PolygonsSet.Edge incoming)
The line supporting the incoming edge is automatically bound with the instance.
incoming
- incoming edgepublic PolygonsSet.Edge getIncoming()
public void setOutgoing(PolygonsSet.Edge outgoing)
The line supporting the outgoing edge is automatically bound with the instance.
outgoing
- outgoing edgepublic PolygonsSet.Edge getOutgoing()
Copyright (c) 2003-2013 Apache Software Foundation