void |
S2ConvexHullQuery.addPolygon(S2Polygon polygon) |
Adds a polygon to the input geometry.
|
void |
S2PolygonBuilder.addPolygon(S2Polygon polygon) |
Add all loops in the given polygon.
|
boolean |
S2Polygon.approxContains(S2Polygon b,
S1Angle vertexMergeRadius) |
Returns true if this polygon (A) approximately contains the given other polygon (B).
|
boolean |
S2PolygonBuilder.assemblePolygon(S2Polygon polygon,
List<S2Edge> unusedEdges) |
Like AssembleLoops, but then assembles the loops into a polygon.
|
int |
S2Polygon.compareTo(S2Polygon other) |
Comparator (needed by Comparable interface).
|
boolean |
S2Polygon.contains(S2Polygon b) |
Returns true if this polygon contains the given other polygon, i.e., if polygon A contains all
points contained by polygon B.
|
static S2LaxPolygonShape |
S2LaxPolygonShape.create(S2Polygon polygon) |
Creates a polygon from the given S2Polygon by copying its data.
|
static double |
S2Polygon.getOverlapFraction(S2Polygon a,
S2Polygon b) |
Returns the overlap fraction of polygon b on polygon a, i.e.
|
void |
S2Polygon.initToComplement(S2Polygon a) |
Initializes this polygon to the complement of the given polygon.
|
void |
S2Polygon.initToDifference(S2Polygon a,
S2Polygon b) |
|
void |
S2Polygon.initToDifferenceSloppy(S2Polygon a,
S2Polygon b,
S1Angle vertexMergeRadius) |
|
void |
S2Polygon.initToIntersection(S2Polygon a,
S2Polygon b) |
Initializes this polygon to the intersection, union, or difference (A - B) of the given two
polygons.
|
void |
S2Polygon.initToIntersectionSloppy(S2Polygon a,
S2Polygon b,
S1Angle vertexMergeRadius) |
|
void |
S2Polygon.initToSimplified(S2Polygon a,
S1Angle tolerance,
boolean snapToCellCenters) |
Initializes this polygon to a polygon that contains fewer vertices and is within tolerance of
the polygon a, with some caveats.
|
void |
S2Polygon.initToSimplifiedInCell(S2Polygon a,
S2Cell cell,
S1Angle tolerance) |
Initializes this polygon to a polygon that contains fewer vertices and is within tolerance of
the polygon a, while ensuring that the vertices on the cell boundary are preserved.
|
void |
S2Polygon.initToSnapped(S2Polygon a,
int snapLevel) |
Use S2PolygonBuilder to build this polygon by assembling the edges of a given polygon after
snapping its vertices to the center of leaf cells.
|
void |
S2Polygon.initToUnion(S2Polygon a,
S2Polygon b) |
|
void |
S2Polygon.initToUnionSloppy(S2Polygon a,
S2Polygon b,
S1Angle vertexMergeRadius) |
|
boolean |
S2Polygon.intersects(S2Polygon b) |
Returns true if this polygon intersects the given other polygon, i.e., if there is a point that
is contained by both polygons.
|
static String |
S2TextFormat.toString(S2Polygon polygon) |
Convert an S2Polygon to the S2TextFormat string representation documented above.
|
static String |
S2TextFormat.toString(S2Polygon polygon,
String loopSeparator) |
Convert an S2 polygon to the S2TextFormat string representation documented above, using the
given loopSeparator between each loop.
|