AGI STK Graphics 11 Send comments on this topic.
InitializeWithAffineTransform Method (IAgStkGraphicsTextureMatrixFactory)
See Also  Example
Matrix
An array representing the matrix of the texture. The elements should be provided row by row, from left to right.





Description

Initializes a Texture Matrix from a Matrix. The upper left 2x2 matrix defines rotation and scaling. The top two elements of the last column define translation.

Syntax

[Visual Basic .NET]
Public Function InitializeWithAffineTransform( _
   ByRef Matrix As System.Array _
) As IAgStkGraphicsTextureMatrix

[C#]
public IAgStkGraphicsTextureMatrix InitializeWithAffineTransform(
ref System.Array Matrix
);

[Managed C++]
public: IAgStkGraphicsTextureMatrix^ InitializeWithAffineTransform(
System::Array ^^ Matrix
);

[Java]
public IAgStkGraphicsTextureMatrix initializeWithAffineTransform(
Object[] Matrix
);

[Unmanaged C++]
public: HRESULT InitializeWithAffineTransform(
SAFEARRAY ** Matrix,
IAgStkGraphicsTextureMatrix ** ReturnValue
);

Parameters

Matrix
An array representing the matrix of the texture. The elements should be provided row by row, from left to right.

Example

Shows the format of the Matrix parameter when creating a texture matrix.
[C#] Copy Code
Array transformationArray = new object[] 

    1.00.00.0
    1.00.00.0 
}; 
 
surfaceMesh.TextureMatrix = sceneManager.Initializers.TextureMatrix.InitializeWithAffineTransform( 
    ref transformationArray); 
 

Shows the format of the Matrix parameter when creating a texture matrix.
[Visual Basic .NET] Copy Code
Dim transformationArray As Array = New Object() {1, 0, 0, 1, 0, 0}

surfaceMesh.TextureMatrix = sceneManager.Initializers.TextureMatrix.InitializeWithAffineTransform(transformationArray)

See Also

© 2016 All Rights Reserved.

STK Programming Interface 11.0.1