(package private) static boolean |
S2ShapeUtil.findAnyCrossing(S2ShapeIndex index,
java.util.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(java.util.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(java.util.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 |
S2Loop.findValidationError(S2Error error) |
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 |
S2Loop.findValidationErrorNoIndex(S2Error error) |
Like findValidationError(), but skips any checks that would require building the S2ShapeIndex
(i.e., self-intersection tests).
|
(package private) static boolean |
S2ShapeUtil.getCrossingError(java.util.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.
|