Matrix 结构
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
表示用于在二维空间中进行转换的 3 x 3 仿射转换矩阵。
public value class Matrix : IFormattable
[System.Security.SecurityCritical]
public struct Matrix : IFormattable
[<System.Security.SecurityCritical>]
type Matrix = struct
interface IFormattable
Public Structure Matrix
Implements IFormattable
- 继承
- 属性
- 实现
注解
此结构表示 Windows 运行时 (WinRT) Matrix 结构的 .NET 投影。 有关详细信息,请参阅 UWP API 参考中的 矩阵 。
构造函数
| Matrix(Double, Double, Double, Double, Double, Double) |
初始化 Matrix 结构。 |
属性
| Identity |
获取一个恒等矩阵。 |
| IsIdentity |
获取一个值,它指示此 Matrix 结构是否为恒等矩阵。 |
| M11 |
获取或设置此 Matrix 结构中第一行与第一列相交处的值。 |
| M12 |
获取或设置此 Matrix 结构中第一行与第二列相交处的值。 |
| M21 |
获取或设置此 Matrix 结构中第二行与第一列相交处的值。 |
| M22 |
获取或设置此 Matrix 结构中第二行与第二列相交处的值。 |
| OffsetX |
获取或设置此 Matrix 结构中第三行与第一列相交处的值。 |
| OffsetY |
获取或设置此 Matrix 结构中第三行与第二列相交处的值。 |
方法
| Equals(Matrix) |
确定指定的 Matrix 结构是否与此实例相同。 |
| Equals(Object) | |
| GetHashCode() |
返回此 Matrix 结构的哈希代码。 |
| ToString() | |
| ToString(IFormatProvider) | |
| Transform(Point) |
用 Matrix 变换指定的点并返回结果。 |
运算符
| Equality(Matrix, Matrix) |
确定两个指定的 Matrix 结构是否相同。 |
| Inequality(Matrix, Matrix) |
确定两个指定的 Matrix 结构是否不同。 |
显式接口实现
| IFormattable.ToString(String, IFormatProvider) |
有关此成员的说明,请参见 ToString(String, IFormatProvider)。 |