GeodesicSectorParameters constructor
- double axisDirection = 0.0,
- AngularUnit? angularUnit,
- ArcGISPoint? center,
- LinearUnit? linearUnit,
- int maxPointCount = 10,
- double maxSegmentLength = 0.0,
- GeometryType geometryType = GeometryType.polygon,
- double sectorAngle = 0.0,
- double semiAxis1Length = 0.0,
- double semiAxis2Length = 0.0,
- double startDirection = 0.0,
Creates a new GeodesicSectorParameters 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.sectorAngle
— The sweep angle of the sector in angular_unit.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.startDirection
— The direction of starting radius of the sector as an angle in angular_unit.
Implementation
factory GeodesicSectorParameters({
double axisDirection = 0.0,
AngularUnit? angularUnit,
ArcGISPoint? center,
LinearUnit? linearUnit,
int maxPointCount = 10,
double maxSegmentLength = 0.0,
GeometryType geometryType = GeometryType.polygon,
double sectorAngle = 0.0,
double semiAxis1Length = 0.0,
double semiAxis2Length = 0.0,
double startDirection = 0.0,
}) {
_initializeArcGISEnvironmentIfNeeded();
final handle = _withThrowingErrorHandler((errorHandler) {
return runtimecore.RT_GeodesicSectorParameters_createWith(
axisDirection,
angularUnit?._handle ?? ffi.nullptr,
center?._handle ?? ffi.nullptr,
linearUnit?._handle ?? ffi.nullptr,
maxPointCount,
maxSegmentLength,
geometryType.coreValue,
sectorAngle,
semiAxis1Length,
semiAxis2Length,
startDirection,
errorHandler,
);
});
return GeodesicSectorParameters._withHandle(handle);
}