語言

Matrix 結構

定義

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

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
繼承
Matrix
屬性
實作

備註

此結構體代表Windows 執行階段(WinRT)Matrix struct的.NET投影。 欲了解更多資訊,請參閱 UWP API 參考中的 矩陣 。

建構函式

名稱 Description
Matrix(Double, Double, Double, Double, Double, Double)

初始化一個 Matrix 結構體。

屬性

名稱 Description
Identity

會得到一個身份矩陣。

IsIdentity

會得到一個值,表示此 Matrix 結構體是否為單位矩陣。

M11

取得或設定此 Matrix 結構體第一列第一欄的值。

M12

取得或設定此 Matrix 結構體第一列第二欄的值。

M21

取得或設定此 Matrix 結構體第二列第一欄的值。

M22

取得或設定此 Matrix 結構體第二列第二欄的值。

OffsetX

取得或設定此 Matrix 結構體第三列第一欄的值。

OffsetY

取得或設定此 Matrix 結構體第三列第二欄的值。

方法

名稱 Description
Equals(Matrix)

判斷指定的 Matrix 結構體是否與此實例相同。

Equals(Object)

判斷指定的ObjectMatrix結構體是否與此 Matrix完全相同。

GetHashCode()

回傳此 Matrix 結構的雜湊碼。

ToString()

建立 String 這個 Matrix 結構體的表示。

ToString(IFormatProvider)

建立 String 此結構體的表示 Matrix ,並附上特定文化的格式資訊。

Transform(Point)

將指定點 變換為 並 Matrix 返回結果。

操作員

名稱 Description
Equality(Matrix, Matrix)

判斷兩個指定的 Matrix 結構是否相同。

Inequality(Matrix, Matrix)

判斷兩個指定的 Matrix 結構體是否不相同。

明確介面實作

名稱 Description
IFormattable.ToString(String, IFormatProvider)

關於此成員的描述,請參見 ToString(String, IFormatProvider)。

適用於

另請參閱