This document is archived and information here might be outdated. Recommended version. |
ArcObjects namespaces > Geometry > ESRI.ArcGIS.Geometry > Interfaces > IA > IAffineTransformation2D3 Interface > IAffineTransformation2D3.QueryLinearCoefficients Method (ArcObjects .NET 10.4 SDK) |
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
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.
//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());