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 class
A multi polygon with points referenced from an array.static class
A multi polygon with vertices referenced from aList<S2Point>
, and cumulative edges referenced from anPrimitiveArrays.Longs
.static class
A multi polygon with vertex coordinates stored in a double[].static class
A multi polygon with vertices at cell ID centers stored in a long[].static class
A simple polygon with points referenced from an array.static class
static class
A simple polygon with vertex coordinates stored in a double[].static class
A simple polygon with vertices at cell ID centers stored in a long[].Fields in com.google.common.geometry declared as S2LaxPolygonShapeModifier and TypeFieldDescriptionstatic final S2LaxPolygonShape
S2LaxPolygonShape.EMPTY
A singleton for the empty polygon.static final S2LaxPolygonShape
S2LaxPolygonShape.FULL
A 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_CLASSES
Methods in com.google.common.geometry that return S2LaxPolygonShapeModifier and TypeMethodDescriptionstatic S2LaxPolygonShape
Creates a polygon from the givenS2Polygon
by copying its data.static S2LaxPolygonShape
Creates a polygon from the given loops, defensively copying any loop's Iterable except anImmutableList
, to ensure the polygon is deeply immutable.static S2LaxPolygonShape
S2LaxPolygonShape.createPacked
(Iterable<? extends Iterable<S2Point>> loops) Ascreate(com.google.common.geometry.S2Polygon)
, but packs coordinates into a double[] array.static S2LaxPolygonShape
S2LaxPolygonShape.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 S2LaxPolygonShape
S2TextFormat.makeLaxPolygon
(String str) As above, but does not CHECK-fail on invalid input.static S2LaxPolygonShape
S2TextFormat.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 TypeMethodDescriptionvoid
S2LaxPolygonShape.Coder.encode
(S2LaxPolygonShape shape, OutputStream output) static String
S2TextFormat.toString
(S2LaxPolygonShape polygon) Convert an S2LaxPolygonShape to the S2TextFormat string representation documented above.static String
S2TextFormat.toString
(S2LaxPolygonShape polygon, String loopSeparator) Convert an S2LaxPolygonShape to the S2TextFormat string representation documented above, using the given loopSeparator.