GeodesicEllipseParameters constructor

GeodesicEllipseParameters(
  1. {double axisDirection = 0.0,
  2. AngularUnit? angularUnit,
  3. ArcGISPoint? center,
  4. LinearUnit? linearUnit,
  5. int maxPointCount = 10,
  6. double maxSegmentLength = 0.0,
  7. GeometryType geometryType = GeometryType.polygon,
  8. double semiAxis1Length = 0.0,
  9. double semiAxis2Length = 0.0}
)

Creates a new GeodesicEllipseParameters object with the given values.

Parameters:

  • axisDirection — The direction of the major axis of the ellipse as an angle in the given angular unit.
  • angularUnit — The angular unit of measure. If null degrees are assumed.
  • center — The center of the ellipse.
  • linearUnit — The linear unit of measure. If null meters are assumed.
  • maxPointCount — The max number of vertices in the ellipse.
  • maxSegmentLength — The max segment length of the result approximation in the given linear unit.
  • geometryType — The type of output geometry required, must be one of GeometryType.polyline, GeometryType.polygon, or GeometryType.multipoint.
  • semiAxis1Length — The length of the semi-major or semi-minor axis of the ellipse in the given linear unit.
  • semiAxis2Length — The length of the semi-major or semi-minor axis of the ellipse in the given linear unit.

Implementation

factory GeodesicEllipseParameters(
    {double axisDirection = 0.0,
    AngularUnit? angularUnit,
    ArcGISPoint? center,
    LinearUnit? linearUnit,
    int maxPointCount = 10,
    double maxSegmentLength = 0.0,
    GeometryType geometryType = GeometryType.polygon,
    double semiAxis1Length = 0.0,
    double semiAxis2Length = 0.0}) {
  _initializeArcGISEnvironmentIfNeeded();
  final handle = _withThrowingErrorHandler((errorHandler) {
    return runtimecore.RT_GeodesicEllipseParameters_createWith(
        axisDirection,
        angularUnit?._handle ?? ffi.nullptr,
        center?._handle ?? ffi.nullptr,
        linearUnit?._handle ?? ffi.nullptr,
        maxPointCount,
        maxSegmentLength,
        geometryType.coreValue,
        semiAxis1Length,
        semiAxis2Length,
        errorHandler);
  });
  return GeodesicEllipseParameters._withHandle(handle);
}