Uses of Interface
com.google.common.geometry.S2LaxPolygonShape
-
Uses of S2LaxPolygonShape in com.google.common.geometry
Classes in com.google.common.geometry that implement S2LaxPolygonShapeModifier and TypeClassDescriptionstatic classA multi polygon with points referenced from an array.static classA multi polygon with vertices referenced from aList<S2Point>, and cumulative edges referenced from anPrimitiveArrays.Longs.static classA multi polygon with vertex coordinates stored in a double[].static classA multi polygon with vertices at cell ID centers stored in a long[].static classA simple polygon with points referenced from an array.static classstatic classA simple polygon with vertex coordinates stored in a double[].static classA simple polygon with vertices at cell ID centers stored in a long[].Fields in com.google.common.geometry declared as S2LaxPolygonShapeModifier and TypeFieldDescriptionstatic final S2LaxPolygonShapeS2LaxPolygonShape.EMPTYA singleton for the empty polygon.static final S2LaxPolygonShapeS2LaxPolygonShape.FULLA singleton for the full polygon.Fields in com.google.common.geometry with type parameters of type S2LaxPolygonShapeModifier and TypeFieldDescriptionprivate static final com.google.common.collect.ImmutableList<Class<? extends S2LaxPolygonShape>> S2TaggedShapeCoder.LAX_POLYGON_SHAPE_CLASSESMethods in com.google.common.geometry that return S2LaxPolygonShapeModifier and TypeMethodDescriptionstatic S2LaxPolygonShapeCreates a polygon from the givenS2Polygonby copying its data.static S2LaxPolygonShapeCreates 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.S2LaxPolygonShape.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 S2LaxPolygonShapeModifier and TypeMethodDescriptionvoidS2LaxPolygonShape.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.