Uses of Class
com.google.common.geometry.S2Error

  • Uses of S2Error in com.google.common.geometry

    Methods in com.google.common.geometry with parameters of type S2Error
    Modifier and Type
    Method
    Description
    (package private) static boolean
    S2ShapeUtil.findAnyCrossing(S2ShapeIndex index, List<S2Loop> loops, S2Error error)
    Given an S2ShapeIndex containing a set of loops, return true if any loop has a self-intersection (including duplicate vertices) or crosses any other loop (including vertex crossings and duplicate edges) and set "error" to a human-readable error message.
    (package private) static boolean
    S2ShapeUtil.findLoopCrossing(List<S2Loop> loops, S2ShapeIndex.Cell cell, S2Error error)
    Returns true if any of the given loops crosses a different loop (including vertex crossings) or two loops share a common edge, and sets "error" to a human-readable error message.
    private boolean
    S2Polygon.findLoopNestingError(S2Error error)
    Returns true if there is an error in the loop nesting hierarchy.
    (package private) static boolean
    S2ShapeUtil.findSelfIntersection(S2ShapeIndex.S2ClippedShape aClipped, S2Loop aLoop, S2Error error)
    Test for crossings between all edge pairs that do not share a vertex.
    (package private) static boolean
    S2ShapeUtil.findSelfIntersection(S2ShapeIndex index, S2Loop loop, S2Error error)
    Given an S2ShapeIndex containing a single loop, return true if the loop has a self-intersection (including duplicate vertices) and set "error" to a human-readable error message.
    (package private) static boolean
    S2ShapeUtil.findSelfIntersection(List<S2Loop> loops, S2ShapeIndex.Cell cell, S2Error error)
    Returns true if any of the given loops has a self-intersection (including a duplicate vertex), and set "error" to a human-readable error message.
    boolean
    Returns true if this is *not* a valid loop and sets error appropriately.
    boolean
    S2Polygon.findValidationError(S2Error error)
    Returns true if this is *not* a valid polygon and sets error appropriately.
    boolean
    Like findValidationError(), but skips any checks that would require building the S2ShapeIndex (i.e., self-intersection tests).
    (package private) static boolean
    S2ShapeUtil.getCrossingError(List<S2Loop> loops, S2Loop aLoop, int ai, S2Loop bLoop, int bj, int crossing, S2Error error)
    Given two loop edges for which RobustCrossing returned a non-negative result "crossing", returns true if there is a crossing and sets "error" to a human-readable error message, otherwise returns false.