Matrix Matrix Matrix Matrix Struct

定義

表示 3x3 仿射轉換矩陣,用於二維空間中的轉換。Represents a 3x3 affine transformation matrix used for transformations in two-dimensional space.

public value class Matrix : IFormattable
[System.Security.SecurityCritical]
public struct Matrix : IFormattable
type Matrix = struct
    interface IFormattable
Public Structure Matrix
Implements IFormattable
繼承
屬性
實作

備註

這個結構代表 Windows 執行階段 (WinRT) Matrix結構的 .net 投射。This struct represents the .NET projection of the Windows Runtime (WinRT) Matrix struct. 如需詳細資訊, 請參閱 UWP API 參考中的矩陣For more information, see Matrix in the UWP API reference.

建構函式

Matrix(Double, Double, Double, Double, Double, Double) Matrix(Double, Double, Double, Double, Double, Double) Matrix(Double, Double, Double, Double, Double, Double) Matrix(Double, Double, Double, Double, Double, Double)

初始化 Matrix 結構。Initializes a Matrix struct.

屬性

Identity Identity Identity Identity

取得單位矩陣。Gets an identity matrix.

IsIdentity IsIdentity IsIdentity IsIdentity

取得值,這個值表示此 Matrix 結構是否為單位矩陣。Gets a value that indicates whether this Matrix struct is an identity matrix.

M11 M11 M11 M11

取得或設定這個 Matrix 結構第一列第一行的值。Gets or sets the value of the first row and first column of this Matrix struct.

M12 M12 M12 M12

取得或設定這個 Matrix 結構第一列第二行的值。Gets or sets the value of the first row and second column of this Matrix struct.

M21 M21 M21 M21

取得或設定這個 Matrix 結構第二列第一行的值。Gets or sets the value of the second row and first column of this Matrix struct.

M22 M22 M22 M22

取得或設定這個 Matrix 結構第二列第二行的值。Gets or sets the value of the second row and second column of this Matrix struct.

OffsetX OffsetX OffsetX OffsetX

取得或設定這個 Matrix 結構第三列第一行的值。Gets or sets the value of the third row and first column of this Matrix struct.

OffsetY OffsetY OffsetY OffsetY

取得或設定這個 Matrix 結構第三列第二行的值。Gets or sets the value of the third row and second column of this Matrix struct.

方法

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

判斷所指定 ObjectMatrix 結構是否等同於 MatrixDetermines whether the specified Object is a Matrix struct that is identical to this Matrix.

Equals(Matrix) Equals(Matrix) Equals(Matrix) Equals(Matrix)

判斷所指定 Matrix 結構是否等同於這個執行個體。Determines whether the specified Matrix struct is identical to this instance.

GetHashCode() GetHashCode() GetHashCode() GetHashCode()

傳回這個 Matrix 結構的雜湊程式碼。Returns the hash code for this Matrix struct.

ToString() ToString() ToString() ToString()

建立這個 Matrix 結構的 String 表示。Creates a String representation of this Matrix struct.

ToString(IFormatProvider) ToString(IFormatProvider) ToString(IFormatProvider) ToString(IFormatProvider)

使用特定文化特性格式資訊,建立這個 Matrix 結構的 String 表示。Creates a String representation of this Matrix struct with culture-specific formatting information.

Transform(Point) Transform(Point) Transform(Point) Transform(Point)

Matrix 轉換指定的點,然後傳回結果。Transforms the specified point by the Matrix and returns the result.

運算子

Equality(Matrix, Matrix) Equality(Matrix, Matrix) Equality(Matrix, Matrix) Equality(Matrix, Matrix)

判斷兩個所指定 Matrix 結構是否相等。Determines whether the two specified Matrix structs are identical.

Inequality(Matrix, Matrix) Inequality(Matrix, Matrix) Inequality(Matrix, Matrix) Inequality(Matrix, Matrix)

判斷兩個所指定 Matrix 結構是否不相等。Determines whether the two specified Matrix structs are not identical.

明確介面實作

IFormattable.ToString(String, IFormatProvider) IFormattable.ToString(String, IFormatProvider) IFormattable.ToString(String, IFormatProvider) IFormattable.ToString(String, IFormatProvider)

如需這個成員的說明,請參閱 ToString(String, IFormatProvider)For a description of this member, see ToString(String, IFormatProvider).

適用於

另請參閱