Uses of Interface
com.google.common.geometry.S2LaxPolygonShape
-
-
Uses of S2LaxPolygonShape in com.google.common.geometry
Classes in com.google.common.geometry that implement S2LaxPolygonShape Modifier and Type Class Description static classS2LaxPolygonShape.MultiArrayA multi polygon with points referenced from an array.static classS2LaxPolygonShape.MultiListA multi polygon with vertices referenced from aList, and cumulative edges referenced from anPrimitiveArrays.Longs.static classS2LaxPolygonShape.MultiPackedA multi polygon with vertex coordinates stored in a double[].static classS2LaxPolygonShape.MultiSnappedA multi polygon with vertices at cell ID centers stored in a long[].static classS2LaxPolygonShape.SimpleArrayA simple polygon with points referenced from an array.static classS2LaxPolygonShape.SimpleListA simple polygon with vertices referenced from aList.static classS2LaxPolygonShape.SimplePackedA simple polygon with vertex coordinates stored in a double[].static classS2LaxPolygonShape.SimpleSnappedA simple polygon with vertices at cell ID centers stored in a long[].Fields in com.google.common.geometry declared as S2LaxPolygonShape Modifier and Type Field Description static S2LaxPolygonShapeS2LaxPolygonShape. EMPTYA singleton for the empty polygon.static S2LaxPolygonShapeS2LaxPolygonShape. FULLA singleton for the full polygon.Methods in com.google.common.geometry that return S2LaxPolygonShape Modifier and Type Method Description static S2LaxPolygonShapeS2LaxPolygonShape. create(S2Polygon polygon)Creates a polygon from the givenS2Polygonby copying its data.static S2LaxPolygonShapeS2LaxPolygonShape. create(Iterable<? extends Iterable<S2Point>> loops)Creates a polygon from the given loops, defensively copying any loop's Iterable except anImmutableList, to ensure the polygon is deeply immutable.static S2LaxPolygonShapeS2LaxPolygonShape. createPacked(Iterable<? extends Iterable<S2Point>> loops)Ascreate(com.google.common.geometry.S2Polygon), but packs coordinates into a double[] array.static S2LaxPolygonShapeS2LaxPolygonShape. createSnapped(Iterable<? extends Iterable<S2CellId>> loops)Ascreate(com.google.common.geometry.S2Polygon), but packs vertices into a long[] array.S2LaxPolygonShapeS2LaxPolygonShape.Coder. decode(PrimitiveArrays.Bytes data, PrimitiveArrays.Cursor cursor)static S2LaxPolygonShapeS2TextFormat. makeLaxPolygon(String str)As above, but does not CHECK-fail on invalid input.static S2LaxPolygonShapeS2TextFormat. makeLaxPolygonOrDie(String str)Parses a string in the same format as MakePolygon, except that loops must be oriented so that the interior of the loop is always on the left, and polygons with degeneracies are supported.Methods in com.google.common.geometry with parameters of type S2LaxPolygonShape Modifier and Type Method Description voidS2LaxPolygonShape.Coder. encode(S2LaxPolygonShape shape, OutputStream output)static StringS2TextFormat. toString(S2LaxPolygonShape polygon)Convert an S2LaxPolygonShape to the S2TextFormat string representation documented above.static StringS2TextFormat. toString(S2LaxPolygonShape polygon, String loopSeparator)Convert an S2LaxPolygonShape to the S2TextFormat string representation documented above, using the given loopSeparator.
-