|
|||||||||
| 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.Edge
private static class PolygonsSet.Edge
Internal class for holding edges while they are processed to build a BSP tree.
| Field Summary | |
|---|---|
private PolygonsSet.Vertex |
end
End vertex. |
private Line |
line
Line supporting the edge. |
private BSPTree<Euclidean2D> |
node
Node whose cut hyperplane contains this edge. |
private PolygonsSet.Vertex |
start
Start vertex. |
| Constructor Summary | |
|---|---|
PolygonsSet.Edge(PolygonsSet.Vertex start,
PolygonsSet.Vertex end,
Line line)
Build an edge not contained in any node yet. |
|
| Method Summary | |
|---|---|
PolygonsSet.Vertex |
getEnd()
Get end vertex. |
Line |
getLine()
Get the line supporting this edge. |
BSPTree<Euclidean2D> |
getNode()
Get the node whose cut hyperplane contains this edge. |
PolygonsSet.Vertex |
getStart()
Get start vertex. |
void |
setNode(BSPTree<Euclidean2D> node)
Set the node whose cut hyperplane contains this edge. |
PolygonsSet.Vertex |
split(Line splitLine)
Split the edge. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private final PolygonsSet.Vertex start
private final PolygonsSet.Vertex end
private final Line line
private BSPTree<Euclidean2D> node
| Constructor Detail |
|---|
public PolygonsSet.Edge(PolygonsSet.Vertex start,
PolygonsSet.Vertex end,
Line line)
start - start vertexend - end vertexline - line supporting the edge| Method Detail |
|---|
public PolygonsSet.Vertex getStart()
public PolygonsSet.Vertex getEnd()
public Line getLine()
public void setNode(BSPTree<Euclidean2D> node)
node - node whose cut hyperplane contains this edgepublic BSPTree<Euclidean2D> getNode()
public PolygonsSet.Vertex split(Line splitLine)
Once split, this edge is not referenced anymore by the vertices, it is replaced by the two half-edges and an intermediate splitting vertex is introduced to connect these two halves.
splitLine - line splitting the edge in two halves
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||