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 class
S2LaxPolygonShape.MultiArray
A multi polygon with points referenced from an array.static class
S2LaxPolygonShape.MultiList
A multi polygon with vertices referenced from aList
, and cumulative edges referenced from anPrimitiveArrays.Longs
.static class
S2LaxPolygonShape.MultiPacked
A multi polygon with vertex coordinates stored in a double[].static class
S2LaxPolygonShape.MultiSnapped
A multi polygon with vertices at cell ID centers stored in a long[].static class
S2LaxPolygonShape.SimpleArray
A simple polygon with points referenced from an array.static class
S2LaxPolygonShape.SimpleList
A simple polygon with vertices referenced from aList
.static class
S2LaxPolygonShape.SimplePacked
A simple polygon with vertex coordinates stored in a double[].static class
S2LaxPolygonShape.SimpleSnapped
A 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 S2LaxPolygonShape
S2LaxPolygonShape. EMPTY
A singleton for the empty polygon.static S2LaxPolygonShape
S2LaxPolygonShape. FULL
A singleton for the full polygon.Fields in com.google.common.geometry with type parameters of type S2LaxPolygonShape Modifier and Type Field Description private static com.google.common.collect.ImmutableList<java.lang.Class<? extends S2LaxPolygonShape>>
S2TaggedShapeCoder. LAX_POLYGON_SHAPE_CLASSES
Methods in com.google.common.geometry that return S2LaxPolygonShape Modifier and Type Method Description static S2LaxPolygonShape
S2LaxPolygonShape. create(S2Polygon polygon)
Creates a polygon from the givenS2Polygon
by copying its data.static S2LaxPolygonShape
S2LaxPolygonShape. create(java.lang.Iterable<? extends java.lang.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 S2LaxPolygonShape
S2LaxPolygonShape. createPacked(java.lang.Iterable<? extends java.lang.Iterable<S2Point>> loops)
Ascreate(com.google.common.geometry.S2Polygon)
, but packs coordinates into a double[] array.static S2LaxPolygonShape
S2LaxPolygonShape. createSnapped(java.lang.Iterable<? extends java.lang.Iterable<S2CellId>> loops)
Ascreate(com.google.common.geometry.S2Polygon)
, but packs vertices into a long[] array.S2LaxPolygonShape
S2LaxPolygonShape.Coder. decode(PrimitiveArrays.Bytes data, PrimitiveArrays.Cursor cursor)
static S2LaxPolygonShape
S2TextFormat. makeLaxPolygon(java.lang.String str)
As above, but does not CHECK-fail on invalid input.static S2LaxPolygonShape
S2TextFormat. makeLaxPolygonOrDie(java.lang.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 void
S2LaxPolygonShape.Coder. encode(S2LaxPolygonShape shape, java.io.OutputStream output)
static java.lang.String
S2TextFormat. toString(S2LaxPolygonShape polygon)
Convert an S2LaxPolygonShape to the S2TextFormat string representation documented above.static java.lang.String
S2TextFormat. toString(S2LaxPolygonShape polygon, java.lang.String loopSeparator)
Convert an S2LaxPolygonShape to the S2TextFormat string representation documented above, using the given loopSeparator.
-