Skip to content

ArcGISEnvelope

Namespace: Esri::GameEngine::Geometry
Class: Esri/GameEngine/Geometry/ArcGISEnvelope
Since: 1.0.0
Inheritance: ArcGISGeometry->ArcGISEnvelope

Summary

A geometry that represents a rectangular shape.

Constructors

ArcGISEnvelope(double, double, double, double)

Creates an envelope based on the x,y coordinates with a null spatial reference.

Since 1.0.0

Arguments
NameTypeConstSummary
xMindoubleNo

The minimal x-value.

yMindoubleNo

The minimal y-value.

xMaxdoubleNo

The maximum x-value.

yMaxdoubleNo

The maximum y-value.

ArcGISEnvelope(double, double, double, double, double, double)

Creates an envelope based on the x,y and z values with a null spatial reference.

Since 1.0.0

Arguments
NameTypeConstSummary
xMindoubleNo

The minimal x-value.

yMindoubleNo

The minimal y-value.

xMaxdoubleNo

The maximum x-value.

yMaxdoubleNo

The maximum y-value.

zMindoubleNo

The minimal z-value.

zMaxdoubleNo

The maximum z-value.

Creates an envelope based on x, y, and z values with the spatial reference.

Since 1.0.0

Arguments
NameTypeConstSummary
xMindoubleNo

The minimal x-value.

yMindoubleNo

The minimal y-value.

xMaxdoubleNo

The maximum x-value.

yMaxdoubleNo

The maximum y-value.

zMindoubleNo

The minimal z-value.

zMaxdoubleNo

The maximum z-value.

spatialReferenceArcGISSpatialReferenceYes

The spatial reference for the envelope.

ArcGISEnvelope(double, double, double, double, const ArcGISSpatialReference&)

Creates an envelope based on the x,y coordinates with a spatial reference.

Since 1.0.0

Arguments
NameTypeConstSummary
xMindoubleNo

The minimal x-value.

yMindoubleNo

The minimal y-value.

xMaxdoubleNo

The maximum x-value.

yMaxdoubleNo

The maximum y-value.

spatialReferenceArcGISSpatialReferenceYes

The spatial reference for the envelope.

ArcGISEnvelope(const ArcGISPoint&, double, double)

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

Since 1.0.0

Arguments
NameTypeConstSummary
centerArcGISPointYes

The center point for the envelope.

widthdoubleNo

The width of the envelope around the center point.

heightdoubleNo

The height of the envelope around the center point.

ArcGISEnvelope(const ArcGISPoint&, double, double, double)

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

Since 1.0.0

Arguments
NameTypeConstSummary
centerArcGISPointYes

The center point for the envelope.

widthdoubleNo

The width of the envelope around the center point.

heightdoubleNo

The height of the envelope around the center point.

depthdoubleNo

The depth of the envelope around the center point.

ArcGISEnvelope(const ArcGISPoint&, const ArcGISPoint&)

Creates an envelope from any two points.

Since 1.0.0

Arguments
NameTypeConstSummary
minArcGISPointYes

The minimal values for the envelope.

maxArcGISPointYes

The maximum values for the envelope.

Properties

PropertyTypeNullableReadonlySummary
CenterArcGISPointNoYes

The center point for the envelope.

DepthdoubleNoYes

The depth (ZMax - ZMin) for the envelope.

HeightdoubleNoYes

The height for the envelope.

MMaxdoubleNoYes

The m maximum value for the envelope.

MMindoubleNoYes

The m minimum value for the envelope.

WidthdoubleNoYes

The width for the envelope.

XMaxdoubleNoYes

The x maximum value for the envelope.

XMindoubleNoYes

The x minimum value for the envelope.

YMaxdoubleNoYes

The y maximum value for the envelope.

YMindoubleNoYes

The y minimum value for the envelope.

ZMaxdoubleNoYes

The z maximum value for the envelope.

ZMindoubleNoYes

The z minimum value for the envelope.

Center

ArcGISPoint GetCenter() const

The center point for the envelope.

Creates a new Point.

Depth

double GetDepth() const

The depth (ZMax - ZMin) for the envelope.

A 2D envelope has zero depth. Returns NAN if the envelope is empty or if an error occurs.

Height

double GetHeight() const

The height for the envelope.

Returns NAN if an error occurs.

MMax

double GetMMax() const

The m maximum value for the envelope.

Returns NAN if an error occurs.

MMin

double GetMMin() const

The m minimum value for the envelope.

Returns NAN if an error occurs.

Width

double GetWidth() const

The width for the envelope.

Returns NAN if an error occurs.

XMax

double GetXMax() const

The x maximum value for the envelope.

Returns NAN if an error occurs.

XMin

double GetXMin() const

The x minimum value for the envelope.

Returns NAN if an error occurs.

YMax

double GetYMax() const

The y maximum value for the envelope.

Returns NAN if an error occurs.

YMin

double GetYMin() const

The y minimum value for the envelope.

Returns NAN if an error occurs.

ZMax

double GetZMax() const

The z maximum value for the envelope.

Returns NAN if an error occurs.

ZMin

double GetZMin() const

The z minimum value for the envelope.

Returns NAN if an error occurs.

Methods

SignatureReturn TypeSummary

CreateWithM(double, double, double, double, double, double)

ArcGISEnvelope

Creates an envelope based on the x, y and m values with a null spatial reference.

CreateWithM(double, double, double, double, double, double, double, double)

ArcGISEnvelope

Creates an envelope based on the x, y, z and m values with a null spatial reference.

CreateWithM(double, double, double, double, double, double, double, double, const ArcGISSpatialReference&)

ArcGISEnvelope

Creates an envelope based on the x, y, z and m values with a spatial reference.

CreateWithM(double, double, double, double, double, double, const ArcGISSpatialReference&)

ArcGISEnvelope

Creates an envelope based on the x, y and m values with a spatial reference.

CreateWithM

static ArcGISEnvelope CreateWithM(double xMin, double yMin, double xMax, double yMax, double mMin, double mMax)

Creates an envelope based on the x, y and m values with a null spatial reference.

Since 1.0.0

Arguments
NameTypeConstSummary
xMindoubleNo

The minimal x-value.

yMindoubleNo

The minimal y-value.

xMaxdoubleNo

The maximum x-value.

yMaxdoubleNo

The maximum y-value.

mMindoubleNo

The minimal m-value.

mMaxdoubleNo

The maximum m-value.

Returns ArcGISEnvelope

An envelope. This is passed to geometry or envelope functions.

CreateWithM

static ArcGISEnvelope CreateWithM(double xMin, double yMin, double xMax, double yMax, double zMin, double zMax, double mMin, double mMax)

Creates an envelope based on the x, y, z and m values with a null spatial reference.

Since 1.0.0

Arguments
NameTypeConstSummary
xMindoubleNo

The minimal x-value.

yMindoubleNo

The minimal y-value.

xMaxdoubleNo

The maximum x-value.

yMaxdoubleNo

The maximum y-value.

zMindoubleNo

The minimal z-value.

zMaxdoubleNo

The maximum z-value.

mMindoubleNo

The minimal m-value.

mMaxdoubleNo

The maximum m-value.

Returns ArcGISEnvelope

An envelope. This is passed to geometry or envelope functions.

CreateWithM

static ArcGISEnvelope CreateWithM(double xMin, double yMin, double xMax, double yMax, double zMin, double zMax, double mMin, double mMax, const ArcGISSpatialReference& spatialReference)

Creates an envelope based on the x, y, z and m values with a spatial reference.

Since 1.0.0

Arguments
NameTypeConstSummary
xMindoubleNo

The minimal x-value.

yMindoubleNo

The minimal y-value.

xMaxdoubleNo

The maximum x-value.

yMaxdoubleNo

The maximum y-value.

zMindoubleNo

The minimal z-value.

zMaxdoubleNo

The maximum z-value.

mMindoubleNo

The minimal m-value.

mMaxdoubleNo

The maximum m-value.

spatialReferenceArcGISSpatialReferenceYes

The spatial reference for the envelope.

Returns ArcGISEnvelope

An envelope. This is passed to geometry or envelope functions.

CreateWithM

static ArcGISEnvelope CreateWithM(double xMin, double yMin, double xMax, double yMax, double mMin, double mMax, const ArcGISSpatialReference& spatialReference)

Creates an envelope based on the x, y and m values with a spatial reference.

Since 1.0.0

Arguments
NameTypeConstSummary
xMindoubleNo

The minimal x-value.

yMindoubleNo

The minimal y-value.

xMaxdoubleNo

The maximum x-value.

yMaxdoubleNo

The maximum y-value.

mMindoubleNo

The minimal m-value.

mMaxdoubleNo

The maximum m-value.

spatialReferenceArcGISSpatialReferenceYes

The spatial reference for the envelope.

Returns ArcGISEnvelope

An envelope. This is passed to geometry or envelope functions.

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.