public class Vertex
extends java.lang.Object
SphericalPolygonsSet.getBoundaryLoops()
,
Edge
Modifier and Type | Field and Description |
---|---|
private java.util.List<Circle> |
circles
Circles bound with this vertex.
|
private Edge |
incoming
Incoming edge.
|
private S2Point |
location
Vertex location.
|
private Edge |
outgoing
Outgoing edge.
|
Constructor and Description |
---|
Vertex(S2Point location)
Build a non-processed vertex not owned by any node yet.
|
Modifier and Type | Method and Description |
---|---|
(package private) void |
bindWith(Circle circle)
Bind a circle considered to contain this vertex.
|
Edge |
getIncoming()
Get incoming edge.
|
S2Point |
getLocation()
Get Vertex location.
|
Edge |
getOutgoing()
Get outgoing edge.
|
(package private) void |
setIncoming(Edge incoming)
Set incoming edge.
|
(package private) void |
setOutgoing(Edge outgoing)
Set outgoing edge.
|
(package private) Circle |
sharedCircleWith(Vertex vertex)
Get the common circle bound with both the instance and another vertex, if any.
|
private final S2Point location
private Edge incoming
private Edge outgoing
private final java.util.List<Circle> circles
Vertex(S2Point location)
location
- vertex locationpublic S2Point getLocation()
void bindWith(Circle circle)
circle
- circle to bind with this vertexCircle sharedCircleWith(Vertex vertex)
When two vertices are both bound to the same circle, this means they are already handled by node associated with this circle, so there is no need to create a cut hyperplane for them.
vertex
- other vertex to check instance againstvoid setIncoming(Edge incoming)
The circle supporting the incoming edge is automatically bound with the instance.
incoming
- incoming edgepublic Edge getIncoming()
void setOutgoing(Edge outgoing)
The circle supporting the outgoing edge is automatically bound with the instance.
outgoing
- outgoing edgepublic Edge getOutgoing()
Copyright (c) 2003-2016 Apache Software Foundation