Reports whether two polylines have the same number of vertices, and corresponding vertex pairs are separated by no more the provided margin.
Returns the bounding Cap for this Polyline.
Computes a covering of the Polyline.
Returns the i-th edge Chain in the Shape.
Returns the j-th edge of the i-th edge Chain.
Returns a pair (i, j) such that edgeID is the j-th edge
Reports whether this Polyline contains the given Cell. Always returns false because "containment" is not numerically well-defined except at the Polyline vertices.
Returns the dimension of the geometry represented by this Polyline.
Returns endpoints for the given edge index.
Reports whether the given Polyline is exactly the same as this one.
Returns the point whose distance from vertex 0 along the polyline is the given fraction of the polyline's total length, and the index of the next vertex after the interpolated point P. Fractions less than zero or greater than one are clamped. The return value is unit length. The cost of this function is currently linear in the number of vertices.
This method allows the caller to easily construct a given suffix of the polyline by concatenating P with the polyline vertices starting at that next vertex. Note that P is guaranteed to be different than the point at the next vertex, so this will never result in a duplicate vertex.
The polyline must not be empty. Note that if fraction >= 1.0, then the next vertex will be set to len(p) (indicating that no vertices from the polyline need to be appended). The value of the next vertex is always between 1 and len(p).
This method can also be used to construct a prefix of the polyline, by taking the polyline vertices up to next vertex-1 and appending the returned point P if it is different from the last vertex (since in this case there is no guarantee of distinctness).
Reports whether this shape contains no points.
Reports whether this shape contains all points on the sphere.
Returns the length of this Polyline.
Reports the number of contiguous edge chains in this Polyline.
Returns the number of edges in this shape.
We do not support implementations of this interface outside this package.
Returns the default reference point with negative containment because Polylines are not closed.
Reverses the order of the Polyline vertices.
Returns a subsequence of vertex indices such that the polyline connecting these vertices is never further than the given tolerance from the original polyline.
Returns a value that can be used to identify the type of an encoded Shape.
The inverse operation of interpolate. Given a point on the polyline, it returns the ratio of the distance to the point from the beginning of the polyline over the length of the polyline. The return value is always between 0 and 1 inclusive.
The polyline should not be empty. If it has fewer than 2 vertices, the return value is zero.
Checks whether this is a valid polyline or not.
Static
findReports the maximal end index such that the line segment between the start index and this one such that the line segment between these two vertices passes within the given tolerance of all interior vertices, in order.
Represents a sequence of zero or more vertices connected by straight edges (geodesics). Edges of length 0 and 180 degrees are not allowed, i.e. adjacent vertices should not be identical or antipodal.