Matrix.IsIdentity Proprietà

Definizione

Ottiene un valore che indica se la struttura Matrix è una matrice di identità o meno.

public:
 property bool IsIdentity { bool get(); };
public bool IsIdentity { get; }
member this.IsIdentity : bool
Public ReadOnly Property IsIdentity As Boolean

Valore della proprietà

Boolean

true se la struttura Matrix è una matrice di identità, altrimenti false. Il valore predefinito è true.

Commenti

Una matrice identity ha un valore pari a 1 in coefficienti [1,1],[2,2],[3,3] e un valore pari a 0 nel resto dei coefficienti. Ciò è correlato all'impostazione M11 e M22 a 1 e M12, M21, OffsetXe OffsetY a 0. In una matrice affine, ovvero l'implementazione usata da Windows Presentation Foundation (WPF) per la Matrix struttura, i coefficienti [3,1],[3,2],[3,3] sono impliciti per avere sempre i valori rispettivamente 0,0,1.

1 0 0
0 1 0
0 0 1

Per una matrice di identità, il ToString metodo restituisce la stringa "Identity", anziché i coefficienti dell'oggetto Matrix.

Si applica a

Vedi anche