EllipticArcSegment.circularEllipticArcWithStartEndAndInterior constructor

EllipticArcSegment.circularEllipticArcWithStartEndAndInterior({
  1. required ArcGISPoint startPoint,
  2. required ArcGISPoint endPoint,
  3. required ArcGISPoint interiorPoint,
  4. SpatialReference? spatialReference,
})

Creates an EllipticArcSegment from start, end, and interior points that is a partial circle shape.

The z-value and m-value of the start and end points (if present) are used in the circular EllipticArcSegment. The z-value and m-value of the interior point (if present) are ignored.

Parameters:

  • startPoint — The start point of the segment.
  • endPoint — The end point of the segment.
  • interiorPoint — A point along the circular arc, between the start and end points.
  • spatialReference — The spatial reference of the new segment.

Implementation

factory EllipticArcSegment.circularEllipticArcWithStartEndAndInterior({
  required ArcGISPoint startPoint,
  required ArcGISPoint endPoint,
  required ArcGISPoint interiorPoint,
  SpatialReference? spatialReference,
}) {
  _initializeArcGISEnvironmentIfNeeded();
  final handle = _withThrowingErrorHandler((errorHandler) {
    return runtimecore
        .RT_EllipticArcSegment_createCircularEllipticArcWithStartEndAndInterior(
      startPoint._handle,
      endPoint._handle,
      interiorPoint._handle,
      spatialReference?._handle ?? ffi.nullptr,
      errorHandler,
    );
  });
  final EllipticArcSegment object = EllipticArcSegment._withHandle(handle);
  object._spatialReference.cache(spatialReference);
  return object;
}