Class Vertex

    • Constructor Summary

      Constructors 
      Constructor Description
      Vertex​(S2Point location)
      Build a non-processed vertex not owned by any node yet.
    • Field Detail

      • location

        private final S2Point location
        Vertex location.
      • incoming

        private Edge incoming
        Incoming edge.
      • outgoing

        private Edge outgoing
        Outgoing edge.
      • circles

        private final java.util.List<Circle> circles
        Circles bound with this vertex.
    • 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