Click or drag to resize

TextureMatrix Class

A 4 by 4 matrix applied to a texture coordinate.
Inheritance Hierarchy
SystemObject
  AGI.Foundation.GraphicsTextureMatrix

Namespace:  AGI.Foundation.Graphics
Assembly:  AGI.Foundation.Graphics (in AGI.Foundation.Graphics.dll) Version: 24.2.419.0 (24.2.419.0)
Syntax
public sealed class TextureMatrix : IDisposable

The TextureMatrix type exposes the following members.

Constructors
  NameDescription
Public methodTextureMatrix
Initializes a TextureMatrix to the identity matrix.
Public methodTextureMatrix(Matrix)
Initializes a TextureMatrix from a Matrix. The upper left 2x2 matrix defines rotation and scaling. The top two elements of the last column define translation.
Public methodTextureMatrix(Rectangular, Rectangular, Rectangular, Rectangular)
Initializes a TextureMatrix 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.
Public methodTextureMatrix(Single, Single, Single, Single, Single, Single, Single, Single, Single, Single, Single, Single, Single, Single, Single, Single)
Initializes a TextureMatrix. The subscripts define [row][column].
Top
Properties
  NameDescription
Public propertyM11
Gets the element in the first row, first column.
Public propertyM12
Gets the element in the first row, second column.
Public propertyM13
Gets the element in the first row, third column.
Public propertyM14
Gets the element in the first row, fourth column.
Public propertyM21
Gets the element in the second row, first column.
Public propertyM22
Gets the element in the second row, second column.
Public propertyM23
Gets the element in the second row, third column.
Public propertyM24
Gets the element in the second row, fourth column.
Public propertyM31
Gets the element in the third row, first column.
Public propertyM32
Gets the element in the third row, second column.
Public propertyM33
Gets the element in the third row, third column.
Public propertyM34
Gets the element in the third row, fourth column.
Public propertyM41
Gets the element in the fourth row, first column.
Public propertyM42
Gets the element in the fourth row, second column.
Public propertyM43
Gets the element in the fourth row, third column.
Public propertyM44
Gets the element in the fourth row, fourth column.
Top
Methods
  NameDescription
Public methodDispose
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
See Also