Envelope.fromCenter constructor

Envelope.fromCenter(
  1. ArcGISPoint center,
  2. {required double width,
  3. required double height,
  4. double? depth}
)

Creates an envelope from a center point and a width, height, and depth.

The spatial reference of the resulting envelope comes from the center point.

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 Envelope.fromCenter(ArcGISPoint center,
    {required double width, required double height, double? depth}) {
  _initializeArcGISEnvironmentIfNeeded();
  final handle = _withThrowingErrorHandler((errorHandler) {
    return runtimecore.RT_Envelope_createWithCenterPointCombined(
        center._handle, width, height, depth, errorHandler);
  });
  return Envelope._withHandle(handle);
}