Module org.dyn4j

Class ClosestEdgeToVertexSearchCriteria

    • Constructor Detail

      • ClosestEdgeToVertexSearchCriteria

        public ClosestEdgeToVertexSearchCriteria​(SweepLineVertex vertex)
        Minimal constructor.
        Parameters:
        vertex - the vertex to test with
    • Method Detail

      • evaluate

        public int evaluate​(SweepLineEdge edge)
        Description copied from interface: BinarySearchTreeSearchCriteria
        Evaluates the current comparable determining which child to navigate to next.
        • Return zero to stop the search.
        • Return less than zero to continue searching to the left.
        • Return greater than zero to continue searching to the right
        Specified by:
        evaluate in interface BinarySearchTreeSearchCriteria<SweepLineEdge>
        Parameters:
        edge - the current comparable
        Returns:
        int