Matrix 结构

定义

表示用于在二维空间中进行转换的 3 x 3 仿射转换矩阵。Represents a 3x3 affine transformation matrix used for transformations in two-dimensional space.

public value class Matrix : IFormattable
public struct Matrix : IFormattable
[System.Security.SecurityCritical]
public struct Matrix : IFormattable
type Matrix = struct
    interface IFormattable
Public Structure Matrix
Implements IFormattable
继承
Matrix
属性
实现

注解

此结构表示 Windows 运行时(WinRT) Matrix 结构的 .NET 投影。This struct represents the .NET projection of the Windows Runtime (WinRT) Matrix struct. 有关详细信息,请参阅 UWP API 参考中的MatrixFor more information, see Matrix in the UWP API reference.

构造函数

Matrix(Double, Double, Double, Double, Double, Double)

初始化 Matrix 结构。Initializes a Matrix struct.

属性

Identity

获取一个恒等矩阵。Gets an identity matrix.

IsIdentity

获取一个值,它指示此 Matrix 结构是否为恒等矩阵。Gets a value that indicates whether this Matrix struct is an identity matrix.

M11

获取或设置此 Matrix 结构中第一行与第一列相交处的值。Gets or sets the value of the first row and first column of this Matrix struct.

M12

获取或设置此 Matrix 结构中第一行与第二列相交处的值。Gets or sets the value of the first row and second column of this Matrix struct.

M21

获取或设置此 Matrix 结构中第二行与第一列相交处的值。Gets or sets the value of the second row and first column of this Matrix struct.

M22

获取或设置此 Matrix 结构中第二行与第二列相交处的值。Gets or sets the value of the second row and second column of this Matrix struct.

OffsetX

获取或设置此 Matrix 结构中第三行与第一列相交处的值。Gets or sets the value of the third row and first column of this Matrix struct.

OffsetY

获取或设置此 Matrix 结构中第三行与第二列相交处的值。Gets or sets the value of the third row and second column of this Matrix struct.

方法

Equals(Matrix)

确定指定的 Matrix 结构是否与此实例相同。Determines whether the specified Matrix struct is identical to this instance.

Equals(Object)

确定指定的 Object 是否是一个与此 Matrix 相同的 Matrix 结构。Determines whether the specified Object is a Matrix struct that is identical to this Matrix.

GetHashCode()

返回此 Matrix 结构的哈希代码。Returns the hash code for this Matrix struct.

ToString()

创建此 Matrix 结构的 String 表示形式。Creates a String representation of this Matrix struct.

ToString(IFormatProvider)

使用区域性特定的格式设置信息创建此 Matrix 结构的 String 表示形式。Creates a String representation of this Matrix struct with culture-specific formatting information.

Transform(Point)

Matrix 变换指定的点并返回结果。Transforms the specified point by the Matrix and returns the result.

运算符

Equality(Matrix, Matrix)

确定两个指定的 Matrix 结构是否相同。Determines whether the two specified Matrix structs are identical.

Inequality(Matrix, Matrix)

确定两个指定的 Matrix 结构是否不同。Determines whether the two specified Matrix structs are not identical.

显式接口实现

IFormattable.ToString(String, IFormatProvider)

有关此成员的说明,请参见 ToString(String, IFormatProvider)For a description of this member, see ToString(String, IFormatProvider).

适用于

另请参阅