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.