# Matrix 结构

## 定义

``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

## 构造函数

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

## 属性

 获取一个恒等矩阵。Gets an identity matrix. 获取一个值，它指示此 Matrix 结构是否为恒等矩阵。Gets a value that indicates whether this Matrix struct is an identity matrix. 获取或设置此 Matrix 结构中第一行与第一列相交处的值。Gets or sets the value of the first row and first column of this Matrix struct. 获取或设置此 Matrix 结构中第一行与第二列相交处的值。Gets or sets the value of the first row and second column of this Matrix struct. 获取或设置此 Matrix 结构中第二行与第一列相交处的值。Gets or sets the value of the second row and first column of this Matrix struct. 获取或设置此 Matrix 结构中第二行与第二列相交处的值。Gets or sets the value of the second row and second column of this Matrix struct. 获取或设置此 Matrix 结构中第三行与第一列相交处的值。Gets or sets the value of the third row and first column of this Matrix struct. 获取或设置此 Matrix 结构中第三行与第二列相交处的值。Gets or sets the value of the third row and second column of this Matrix struct.

## 方法

 确定指定的 Matrix 结构是否与此实例相同。Determines whether the specified Matrix struct is identical to this instance. 确定指定的 Object 是否是一个与此 Matrix 相同的 Matrix 结构。Determines whether the specified Object is a Matrix struct that is identical to this Matrix. 返回此 Matrix 结构的哈希代码。Returns the hash code for this Matrix struct. 创建此 Matrix 结构的 String 表示形式。Creates a String representation of this Matrix struct. 使用区域性特定的格式设置信息创建此 Matrix 结构的 String 表示形式。Creates a String representation of this Matrix struct with culture-specific formatting information. 用 Matrix 变换指定的点并返回结果。Transforms the specified point by the Matrix and returns the result.

## 运算符

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

## 显式接口实现

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