Uses of Class
com.google.common.geometry.S2Polyline
-
Uses of S2Polyline in com.google.common.geometry
Fields in com.google.common.geometry with type parameters of type S2PolylineModifier and TypeFieldDescriptionprivate static final S2Coder<S2Polyline> S2TaggedShapeCoder.FAST_POLYLINE_SHAPE_CODERMethods in com.google.common.geometry that return S2PolylineModifier and TypeMethodDescription(package private) static S2PolylineS2Polyline.decode(LittleEndianInput decoder) static S2PolylineS2Polyline.decode(InputStream is) private static S2PolylineS2Polyline.decodeCompressed(LittleEndianInput decoder) private static S2PolylineS2Polyline.decodeLossless(LittleEndianInput 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.S2Polyline.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 S2PolylineModifier and TypeMethodDescriptionprivate List<S2Polyline> S2Polygon.internalClipPolyline(boolean invert, S2Polyline a, S1Angle mergeRadius) Clips theS2Polylineato the interior of this polygon.S2Polygon.intersectWithPolyline(S2Polyline in) Intersects this polygon with theS2Polylineinand returns the resulting zero or more polylines.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.S2Polygon.subtractFromPolyline(S2Polyline in) Same asS2Polygon.intersectWithPolyline(com.google.common.geometry.S2Polyline), but subtracts this polygon from the given polyline.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 S2PolylineModifier and TypeMethodDescriptionvoidS2ConvexHullQuery.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.private List<S2Polyline> S2Polygon.internalClipPolyline(boolean invert, S2Polyline a, S1Angle mergeRadius) Clips theS2Polylineato the interior of this polygon.booleanS2Polyline.intersects(S2Polyline line) Return true if this polyline intersects the given polyline.S2Polygon.intersectWithPolyline(S2Polyline in) Intersects this polygon with theS2Polylineinand returns the resulting zero or more polylines.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.S2Polygon.subtractFromPolyline(S2Polyline in) Same asS2Polygon.intersectWithPolyline(com.google.common.geometry.S2Polyline), but subtracts this polygon from the given polyline.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.