Matrix 结构

定义

表示用于在二维空间中进行转换的 3 x 3 仿射转换矩阵。

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

注解

此结构表示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)

确定指定的 Object 是否是一个与此 Matrix 相同的 Matrix 结构。

GetHashCode()

返回此 Matrix 结构的哈希代码。

ToString()

创建此 Matrix 结构的 String 表示形式。

ToString(IFormatProvider)

使用区域性特定的格式设置信息创建此 Matrix 结构的 String 表示形式。

Transform(Point)

Matrix 变换指定的点并返回结果。

运算符

Equality(Matrix, Matrix)

确定两个指定的 Matrix 结构是否相同。

Inequality(Matrix, Matrix)

确定两个指定的 Matrix 结构是否不同。

显式接口实现

IFormattable.ToString(String, IFormatProvider)

有关此成员的说明,请参见 ToString(String, IFormatProvider)

适用于

另请参阅