ArcObjects Library Reference (Geometry)  

IAffineTransformation2D3.QueryLinearCoefficients Method

Returns the linear coefficients which define the two dimensional affine transformation.

[Visual Basic .NET]
Public Sub QueryLinearCoefficients ( _
    ByVal direction As esriTransformDirection, _
    ByRef params As Double _
)
[C#]
public void QueryLinearCoefficients (
    esriTransformDirection direction,
    ref double params
);
[C++]
HRESULT QueryLinearCoefficients(
  esriTransformDirection direction,
  double* params
);
[C++]

Parameters

direction

  direction is a parameter of type esriTransformDirection

params   params is a parameter of type double

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Description

The QueryLinearCoefficients method allows to get the linear coefficients (a, b, c, d, e, f) for the current Affine Transformation. Please see the AffineTransformation2D coclass for a description of the mathematical model. The array will contain the parameters in alphabetical order.

[C#]
//Here is the parameters order
 
double[] dparams = new double[6];            
affine2D3.QueryLinearCoefficients(esriTransformDirection.esriTransformForward, ref dparams[0]);
System.Diagnostics.Debug.Print("a = " + dparams[0].ToString());
System.Diagnostics.Debug.Print("b = " + dparams[1].ToString());
System.Diagnostics.Debug.Print("c = " + dparams[2].ToString());
System.Diagnostics.Debug.Print("d = " + dparams[3].ToString());
System.Diagnostics.Debug.Print("e = " + dparams[4].ToString());
System.Diagnostics.Debug.Print("f = " + dparams[5].ToString());
 

See Also

IAffineTransformation2D3 Interface