Matrix 結構

定義

代表 3x3 仿射轉換矩陣,可用於二維空間中的轉換。

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)

判斷所指定 ObjectMatrix 結構是否等同於 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)

適用於

另請參閱