extend static method
- required Polyline polyline,
- required Polyline extender,
- required Set<
GeometryExtendOptions> extendOptions,
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.
Parameters:
polyline
— The polyline to be extended.extender
— The polyline to extend to.extendOptions
— The flag for the type of extend operation to perform.
Return Value: The extended polyline, or null if polyline could not be extended.
Implementation
static Polyline? extend({
required Polyline polyline,
required Polyline extender,
required Set<GeometryExtendOptions> extendOptions,
}) {
_initializeArcGISEnvironmentIfNeeded();
final objectHandle = _withThrowingErrorHandler((errorHandler) {
return runtimecore.RT_GeometryEngine_extend(
polyline._handle,
extender._handle,
extendOptions.coreValue,
errorHandler,
);
});
return Polyline._fromHandle(
objectHandle,
);
}