Class Vertex
- java.lang.Object
-
- org.apache.commons.math3.geometry.spherical.twod.Vertex
-
public class Vertex extends java.lang.Object
Spherical polygons boundary vertex.- Since:
- 3.3
- See Also:
SphericalPolygonsSet.getBoundaryLoops()
,Edge
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Constructor Detail
-
Vertex
Vertex(S2Point location)
Build a non-processed vertex not owned by any node yet.- Parameters:
location
- vertex location
-
-
Method Detail
-
getLocation
public S2Point getLocation()
Get Vertex location.- Returns:
- vertex location
-
bindWith
void bindWith(Circle circle)
Bind a circle considered to contain this vertex.- Parameters:
circle
- circle to bind with this vertex
-
sharedCircleWith
Circle sharedCircleWith(Vertex vertex)
Get the common circle bound with both the instance and another vertex, if any.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.
- Parameters:
vertex
- other vertex to check instance against- Returns:
- circle bound with both the instance and another vertex, or null if the two vertices do not share a circle yet
-
setIncoming
void setIncoming(Edge incoming)
Set incoming edge.The circle supporting the incoming edge is automatically bound with the instance.
- Parameters:
incoming
- incoming edge
-
getIncoming
public Edge getIncoming()
Get incoming edge.- Returns:
- incoming edge
-
setOutgoing
void setOutgoing(Edge outgoing)
Set outgoing edge.The circle supporting the outgoing edge is automatically bound with the instance.
- Parameters:
outgoing
- outgoing edge
-
getOutgoing
public Edge getOutgoing()
Get outgoing edge.- Returns:
- outgoing edge
-
-