Uses of Class
com.google.common.geometry.S2Polyline
-
-
Uses of S2Polyline in com.google.common.geometry
Methods in com.google.common.geometry that return S2Polyline Modifier and Type Method Description static S2PolylineS2Polyline. decode(InputStream is)static S2PolylineS2Polyline. fromSnapped(S2Polyline a, int snapLevel)Returns a new polyline where the vertices of the given polyline have been snapped to the centers of cells at the specified level.static S2PolylineS2TextFormat. makePolyline(String str)As above, but does not CHECK-fail on invalid input.static S2PolylineS2TextFormat. makePolylineOrDie(String str)Similar to makeLoop(), but returns an S2Polyline rather than an S2Loop.S2PolylineS2Polyline. subsampleVertices(S1Angle tolerance)Return a subsequence of vertex indices such that the polyline connecting these vertices is never further than "tolerance" from the original polyline.Methods in com.google.common.geometry that return types with arguments of type S2Polyline Modifier and Type Method Description List<S2Polyline>S2Polygon. intersectWithPolyline(S2Polyline in)Intersects this polygon with theS2Polylineinand returns the resulting zero or more polylines.List<S2Polyline>S2Polygon. intersectWithPolylineSloppy(S2Polyline in, S1Angle vertexMergeRadius)Similar toS2Polygon.intersectWithPolyline(com.google.common.geometry.S2Polyline), except that vertices will be dropped as necessary to ensure that all adjacent vertices in the sequence obtained by concatenating the output polylines will be farther thanvertexMergeRadiusapart.List<S2Polyline>S2Polygon. subtractFromPolyline(S2Polyline in)Same asS2Polygon.intersectWithPolyline(com.google.common.geometry.S2Polyline), but subtracts this polygon from the given polyline.List<S2Polyline>S2Polygon. subtractFromPolylineSloppy(S2Polyline in, S1Angle vertexMergeRadius)Same asS2Polygon.intersectWithPolylineSloppy(com.google.common.geometry.S2Polyline, com.google.common.geometry.S1Angle), but subtracts this polygon from the given polyline.Methods in com.google.common.geometry with parameters of type S2Polyline Modifier and Type Method Description voidS2ConvexHullQuery. addPolyline(S2Polyline polyline)Adds a polyline to the input geometry.static S2LaxPolylineShapeS2LaxPolylineShape. create(S2Polyline line)Creates a lax polyline from thelineby copying its data.static S2PolylineS2Polyline. fromSnapped(S2Polyline a, int snapLevel)Returns a new polyline where the vertices of the given polyline have been snapped to the centers of cells at the specified level.booleanS2Polyline. intersects(S2Polyline line)Return true if this polyline intersects the given polyline.List<S2Polyline>S2Polygon. intersectWithPolyline(S2Polyline in)Intersects this polygon with theS2Polylineinand returns the resulting zero or more polylines.List<S2Polyline>S2Polygon. intersectWithPolylineSloppy(S2Polyline in, S1Angle vertexMergeRadius)Similar toS2Polygon.intersectWithPolyline(com.google.common.geometry.S2Polyline), except that vertices will be dropped as necessary to ensure that all adjacent vertices in the sequence obtained by concatenating the output polylines will be farther thanvertexMergeRadiusapart.List<S2Polyline>S2Polygon. subtractFromPolyline(S2Polyline in)Same asS2Polygon.intersectWithPolyline(com.google.common.geometry.S2Polyline), but subtracts this polygon from the given polyline.List<S2Polyline>S2Polygon. subtractFromPolylineSloppy(S2Polyline in, S1Angle vertexMergeRadius)Same asS2Polygon.intersectWithPolylineSloppy(com.google.common.geometry.S2Polyline, com.google.common.geometry.S1Angle), but subtracts this polygon from the given polyline.static StringS2TextFormat. toString(S2Polyline polyline)Convert an S2Polyline to the S2TextFormat string representation documented above.
-