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_CODER
Methods in com.google.common.geometry that return S2PolylineModifier and TypeMethodDescription(package private) static S2Polyline
S2Polyline.decode
(LittleEndianInput decoder) static S2Polyline
S2Polyline.decode
(InputStream is) private static S2Polyline
S2Polyline.decodeCompressed
(LittleEndianInput decoder) private static S2Polyline
S2Polyline.decodeLossless
(LittleEndianInput is) static S2Polyline
S2Polyline.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 S2Polyline
S2TextFormat.makePolyline
(String str) As above, but does not CHECK-fail on invalid input.static S2Polyline
S2TextFormat.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 theS2Polyline
a
to the interior of this polygon.S2Polygon.intersectWithPolyline
(S2Polyline in) Intersects this polygon with theS2Polyline
in
and 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 thanvertexMergeRadius
apart.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 TypeMethodDescriptionvoid
S2ConvexHullQuery.addPolyline
(S2Polyline polyline) Adds a polyline to the input geometry.static S2LaxPolylineShape
S2LaxPolylineShape.create
(S2Polyline line) Creates a lax polyline from theline
by copying its data.static S2Polyline
S2Polyline.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 theS2Polyline
a
to the interior of this polygon.boolean
S2Polyline.intersects
(S2Polyline line) Return true if this polyline intersects the given polyline.S2Polygon.intersectWithPolyline
(S2Polyline in) Intersects this polygon with theS2Polyline
in
and 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 thanvertexMergeRadius
apart.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 String
S2TextFormat.toString
(S2Polyline polyline) Convert an S2Polyline to the S2TextFormat string representation documented above.