![]() |
This document is archived and information here might be outdated. Recommended version. |
ArcObjects namespaces > Geometry > ESRI.ArcGIS.Geometry > Interfaces > IA > IAffineTransformation2D3 Interface > IAffineTransformation2D3.SetLinearCoefficients Method (ArcObjects .NET 10.4 SDK) |
Sets the linear coefficients which define the two dimensional affine transformation.
[Visual Basic .NET] Public Sub SetLinearCoefficients ( _ ByVal Direction As esriTransformDirection, _ ByRef params As Double _ )
[C#] public void SetLinearCoefficients ( esriTransformDirection Direction, ref double params );
[C++]
HRESULT SetLinearCoefficients(
esriTransformDirection Direction,
double* params
);
[C++]
Parameters Direction
Direction is a parameter of type esriTransformDirection params params is a parameter of type double
You can use the SetLinearCoordinates method to set the linear coefficients (a, b, c, d, e, f) of the current Affine Transformation. For example, these coefficients may come from another software package and could be used to define the transformation. Please see the AffineTransformation2D coclass for a description of the mathematical model. The parameter values are passed in via an array, 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());