extend

fun extend(polyline: Polyline, extender: Polyline, extendOptions: Set<GeometryExtendOptions>): Polyline?

Extends a polyline using a polyline as the extender using the type of extension specified with extendOptions. The output polyline has the first and last segment of each path extended to the extender if the segments can be interpolated to intersect the extender. In the case that the segments can be extended to multiple segments of the extender, the shortest extension is chosen. Only end points for paths that are not shared by the end points of other paths are extended. If the polyline cannot be extended by the input extender, then null is returned.

Return

The extended polyline, or null if polyline could not be extended.

Since

200.1.0