Click or drag to resize

TextureMatrix Constructor (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.

Namespace:  AGI.Foundation.Graphics
Assembly:  AGI.Foundation.Graphics (in AGI.Foundation.Graphics.dll) Version: 24.2.419.0 (24.2.419.0)
Syntax
public TextureMatrix(
	Rectangular corner0,
	Rectangular corner1,
	Rectangular corner2,
	Rectangular corner3
)

Parameters

corner0
Type: AGI.Foundation.CoordinatesRectangular
The new location of the texture's lower left corner.
corner1
Type: AGI.Foundation.CoordinatesRectangular
The new location of the texture's lower right corner.
corner2
Type: AGI.Foundation.CoordinatesRectangular
The new location of the texture's upper right corner.
corner3
Type: AGI.Foundation.CoordinatesRectangular
The new location of the texture's upper left corner.
See Also