Top Description Fields Constructors Methods
org.apache.commons.math3.geometry.spherical.twod

public Class Vertex

extends Object
Class Inheritance
Imports
java.util.ArrayList, .List

Spherical polygons boundary vertex.
Since
3.3
See Also
SphericalPolygonsSet#getBoundaryLoops(), Edge

Field Summary

Modifier and TypeField and Description
private final List<Circle>
circles

Circles bound with this vertex.

private Edge
incoming

Incoming edge.

private final S2Point
location

Vertex location.

private Edge
outgoing

Outgoing edge.

Constructor Summary

AccessConstructor and Description
pack-priv
Vertex(final S2Point
vertex location
location
)

Build a non-processed vertex not owned by any node yet.

Method Summary

Modifier and TypeMethod and Description
pack-priv void
bindWith(final Circle
circle to bind with this vertex
circle
)

Bind a circle considered to contain this vertex.

public Edge

Returns:

incoming edge
getIncoming
()

Get incoming edge.

public S2Point

Returns:

vertex location
getLocation
()

Get Vertex location.

public Edge

Returns:

outgoing edge
getOutgoing
()

Get outgoing edge.

pack-priv void
setIncoming(final Edge
incoming edge
incoming
)

Set incoming edge.

pack-priv void
setOutgoing(final Edge
outgoing edge
outgoing
)

Set outgoing edge.

pack-priv Circle

Returns:

circle bound with both the instance and another vertex, or null if the two vertices do not share a circle yet
sharedCircleWith
(final Vertex
other vertex to check instance against
vertex
)

Get the common circle bound with both the instance and another vertex, if any.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

circlesback to summary
private final List<Circle> circles

Circles bound with this vertex.

incomingback to summary
private Edge incoming

Incoming edge.

locationback to summary
private final S2Point location

Vertex location.

outgoingback to summary
private Edge outgoing

Outgoing edge.

Constructor Detail

Vertexback to summary
pack-priv Vertex(final S2Point location)

Build a non-processed vertex not owned by any node yet.

Parameters
location:S2Point

vertex location

Method Detail

bindWithback to summary
pack-priv void bindWith(final Circle circle)

Bind a circle considered to contain this vertex.

Parameters
circle:Circle

circle to bind with this vertex

getIncomingback to summary
public Edge getIncoming()

Get incoming edge.

Returns:Edge

incoming edge

getLocationback to summary
public S2Point getLocation()

Get Vertex location.

Returns:S2Point

vertex location

getOutgoingback to summary
public Edge getOutgoing()

Get outgoing edge.

Returns:Edge

outgoing edge

setIncomingback to summary
pack-priv void setIncoming(final Edge incoming)

Set incoming edge.

The circle supporting the incoming edge is automatically bound with the instance.

Parameters
incoming:Edge

incoming edge

setOutgoingback to summary
pack-priv void setOutgoing(final Edge outgoing)

Set outgoing edge.

The circle supporting the outgoing edge is automatically bound with the instance.

Parameters
outgoing:Edge

outgoing edge

sharedCircleWithback to summary
pack-priv Circle sharedCircleWith(final 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:Vertex

other vertex to check instance against

Returns:Circle

circle bound with both the instance and another vertex, or null if the two vertices do not share a circle yet