Envelope.fromCenter constructor
- ArcGISPoint center, {
- required double width,
- required double height,
- 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);
}