EnvelopeBuilder.fromCenter constructor
- ArcGISPoint center, {
- required double width,
- required double height,
- double? depth,
Creates an envelope builder from a center point and a width, height, and depth.
Parameters:
center
— The center point for the envelope.width
— The width of the envelope around the center point.height
— The height of the envelope around the center point.depth
— The depth of the envelope around the center point.
Implementation
factory EnvelopeBuilder.fromCenter(
ArcGISPoint center, {
required double width,
required double height,
double? depth,
}) {
_initializeArcGISEnvironmentIfNeeded();
final handle = _withThrowingErrorHandler((errorHandler) {
return runtimecore.RT_EnvelopeBuilder_createFromCenterPointCombined(
center._handle,
width,
height,
depth,
errorHandler,
);
});
return EnvelopeBuilder._withHandle(handle);
}