STK Graphics PrimitivesSend comments on this topic.
IAgStkGraphicsTextureMatrixFactory Interface

Description

A 4 by 4 matrix applied to a texture coordinate.

Public Methods

Public Method InitializeInitializes a Texture Matrix to the identity matrix.
Public Method InitializeByValuesInitializes a Texture Matrix. The subscripts define [row][column].
Public Method InitializeWithAffineTransformInitializes 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.
Public Method InitializeWithRectanglesInitializes a Texture Matrix from texture corner points. Normally, a texture is mapped such that the lower left corner is texture coordinate (0, 0), the lower right is (1, 0), the upper right is (1, 1), and the upper left is (0, 1). This code remaps those corners to new corners. For example, remapping the lower left corner to (0.5, 0), the lower right to (1, 0.5), the upper right to (0.5, 1), and the upper left to (0, 0.5) would rotate the texture 45 degress.
© 2024 Analytical Graphics, Inc. All Rights Reserved.