Envelope.fromPoints constructor
- ArcGISPoint a,
- ArcGISPoint b
Creates an envelope from any two points.
The spatial reference of the points must be the same. The spatial reference of the result envelope comes from the points. If the values for min parameters are bigger than max parameters then they are re-ordered. The resulting envelope always has min less than or equal to max.
Parameters:
a
— The minimal values for the envelope.b
— The maximum values for the envelope.
Implementation
factory Envelope.fromPoints(
ArcGISPoint a,
ArcGISPoint b,
) {
_initializeArcGISEnvironmentIfNeeded();
final handle = _withThrowingErrorHandler((errorHandler) {
return runtimecore.RT_Envelope_createWithPoints(
a._handle,
b._handle,
errorHandler,
);
});
return Envelope._withHandle(handle);
}