|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.commons.math3.geometry.euclidean.twod.PolygonsSet.Vertex
private static class PolygonsSet.Vertex
Internal class for holding vertices while they are processed to build a BSP tree.
Field Summary | |
---|---|
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 Summary | |
---|---|
PolygonsSet.Vertex(Vector2D location)
Build a non-processed vertex not owned by any node yet. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private final Vector2D location
private PolygonsSet.Edge incoming
private PolygonsSet.Edge outgoing
private final List<Line> lines
Constructor Detail |
---|
public PolygonsSet.Vertex(Vector2D location)
location
- vertex locationMethod Detail |
---|
public 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 against
public 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()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |