Interface S2ContainsPointQuery.EdgeVisitor

  • Enclosing class:
    S2ContainsPointQuery

    static interface S2ContainsPointQuery.EdgeVisitor
    A visitor that receives each edge that has some query point p as an endpoint.
    • Method Detail

      • test

        boolean test​(S2Shape shape,
                     int edgeId,
                     S2Point a,
                     S2Point b)
        Returns true if the next edge should be received, or false to terminate early.
        Parameters:
        shape - The shape of this edge
        edgeId - The edge ID in 'shape' that produced this edge
        a - The startpoint of the edge
        b - The endpoint of the edge