Class Vertex
java.lang.Object
org.apache.commons.math3.geometry.spherical.twod.Vertex
Spherical polygons boundary vertex.
- Since:
- 3.3
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) void
Bind a circle considered to contain this vertex.Get incoming edge.Get Vertex location.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.
-
Field Details
-
location
Vertex location. -
incoming
Incoming edge. -
outgoing
Outgoing edge. -
circles
Circles bound with this vertex.
-
-
Constructor Details
-
Vertex
Vertex(S2Point location) Build a non-processed vertex not owned by any node yet.- Parameters:
location
- vertex location
-
-
Method Details
-
getLocation
Get Vertex location.- Returns:
- vertex location
-
bindWith
Bind a circle considered to contain this vertex.- Parameters:
circle
- circle to bind with this vertex
-
setIncoming
Set incoming edge.The circle supporting the incoming edge is automatically bound with the instance.
- Parameters:
incoming
- incoming edge
-
getIncoming
Get incoming edge.- Returns:
- incoming edge
-
setOutgoing
Set outgoing edge.The circle supporting the outgoing edge is automatically bound with the instance.
- Parameters:
outgoing
- outgoing edge
-
getOutgoing
Get outgoing edge.- Returns:
- outgoing edge
-