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
|
Parameters
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)
|
|