This document is archived and information here might be outdated. Recommended version. |
ArcObjects namespaces > Geometry > ESRI.ArcGIS.Geometry > Interfaces > IA > IAffineTransformation2D Interface > IAffineTransformation2D.DefineFromEnvelopes Method (ArcObjects .NET 10.4 SDK) |
Defines a transformation that maps a point relative to one envelope to a similar position relative to another envelope.
[Visual Basic .NET] Public Sub DefineFromEnvelopes ( _ ByVal from As IEnvelope, _ ByVal to As IEnvelope _ )
[C#] public void DefineFromEnvelopes ( IEnvelope from, IEnvelope to );
[C++]
HRESULT DefineFromEnvelopes(
IEnvelope* from,
IEnvelope* to
);
The IAffineTransformation2D::DefineFromEnvelopes allows to define an AffineTransformation based on two envelopes. This method can be used to create a quick adjustment containing only translation and scale. Since envelope cannot be rotated, it doesn't allow defining a rotation.