Matrix 結構
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
表示用於二維空間中轉換的 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
- 繼承
- 屬性
- 實作
備註
此結構體代表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) | |
| GetHashCode() |
回傳此 Matrix 結構的雜湊碼。 |
| ToString() | |
| ToString(IFormatProvider) | |
| Transform(Point) |
將指定點 變換為 並 Matrix 返回結果。 |
操作員
| 名稱 | Description |
|---|---|
| Equality(Matrix, Matrix) |
判斷兩個指定的 Matrix 結構是否相同。 |
| Inequality(Matrix, Matrix) |
判斷兩個指定的 Matrix 結構體是否不相同。 |
明確介面實作
| 名稱 | Description |
|---|---|
| IFormattable.ToString(String, IFormatProvider) |
關於此成員的描述,請參見 ToString(String, IFormatProvider)。 |