static double |
S2ShapeIndexMeasures.area(S2ShapeIndex shapeIndex) |
Returns the total area of all polygons in shapeIndex.
|
static void |
S2Polygon.breakEdgesAndAddToBuilder(S2ShapeIndex index,
S2PolygonBuilder builder) |
Takes a set of possibly intersecting edges, stored in the S2ShapeIndex, and breaks the edges
into small pieces so that there is no intersection anymore, and adds all these edges to the
builder.
|
static S2Point |
S2ShapeIndexMeasures.centroid(S2ShapeIndex shapeIndex) |
Returns the centroid of all shapes whose dimension is maximal within shapeIndex, multiplied by
the measure of those shapes.
|
static int |
S2ShapeIndexMeasures.dimension(S2ShapeIndex shapeIndex) |
Returns the maximum dimension of any shape in shapeIndex, or -1 if shapeIndex has no shapes.
|
void |
S2ShapeIndexCoder.encode(S2ShapeIndex value,
java.io.OutputStream output) |
|
static boolean |
S2ShapeUtil.equals(S2ShapeIndex a,
S2ShapeIndex b) |
Returns true if all methods of the two S2ShapeIndex values return identical results, including
all the S2Shapes in both indexes.
|
(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.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.
|
static S1Angle |
S2ShapeIndexMeasures.length(S2ShapeIndex shapeIndex) |
Returns the total length of all polylines in shapeIndex, or S1Angle.ZERO if shapeIndex
contains no polylines.
|
static S1Angle |
S2ShapeIndexMeasures.perimeter(S2ShapeIndex shapeIndex) |
Returns the total perimeter of all polygons in shapeIndex (including both "shells" and
"holes"), or S1Angle.ZERO shapeIndex contains no polygons.
|
(package private) static com.google.common.collect.Multimap<S2Shape,java.lang.Integer> |
S2ShapeUtil.shapeToShapeId(S2ShapeIndex index) |
Returns a multimap of S2Shape from index to the shape's ID (i.e., its position
within index.shapes ).
|
static java.lang.String |
S2TextFormat.toString(S2ShapeIndex index) |
Convert an S2CellUnion to the S2TextFormat string representation documented above.
|