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





Windows & Linux

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( _
    ByVal Matrix As System.Array _
) As IAgStkGraphicsTextureMatrix
[C#]
public IAgStkGraphicsTextureMatrix InitializeWithAffineTransform(
    System.Array Matrix
);
[Managed C++]
public: IAgStkGraphicsTextureMatrix^ InitializeWithAffineTransform(
    System::Array ^ Matrix
);
[Unmanaged C++]
public: HRESULT InitializeWithAffineTransform(
    SAFEARRAY * * Matrix,
    IAgStkGraphicsTextureMatrix ** ppRetVal
);
[Java]
public IAgStkGraphicsTextureMatrix initializeWithAffineTransform(
    AgSafeArray Matrix
);
[Python - STK API ]
def InitializeWithAffineTransform(self, Matrix:list) -> "IAgStkGraphicsTextureMatrix":

Parameters

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

See Also

Example

Shows the format of the Matrix parameter when creating a texture matrix.
[C#]
Array transformationArray = new object[] 
{ 
    1.0, 0.0, 0.0,
    1.0, 0.0, 0.0
};

surfaceMesh.TextureMatrix = sceneManager.Initializers.TextureMatrix.InitializeWithAffineTransform(
    ref transformationArray);
Shows the format of the Matrix parameter when creating a texture matrix.
[Visual Basic .NET]
Dim transformationArray As Array = New Object() {1, 0, 0, 1, 0, 0}

surfaceMesh.TextureMatrix = sceneManager.Initializers.TextureMatrix.InitializeWithAffineTransform(transformationArray)
© 2024 Analytical Graphics, Inc. All Rights Reserved.