Matrix3D.SetIdentity 方法

定義

將這個 Matrix3D 結構變更為單位矩陣。Changes this Matrix3D structure into an identity matrix.

public:
 void SetIdentity();
public void SetIdentity ();
member this.SetIdentity : unit -> unit
Public Sub SetIdentity ()

備註

在 身分識別矩陣,所有係數都是 0,除非 [1,1] [2,2] [3,3] [4,4] 的係數,都會設定為 1。In an identity matrix, all coefficients are 0 except the [1,1][2,2][3,3][4,4] coefficients, which are set to 1. 識別矩陣特別適用于將它套用至頂點時,它們會保持不變。The identity matrix is special in that when it is applied to vertices, they are unchanged. 識別矩陣會當做矩陣的起點,修改頂點值以建立旋轉、轉譯,以及可由4x4 矩陣表示的任何其他轉換。The identity matrix is used as the starting point for matrices that modify vertex values to create rotations, translations, and any other transformations that can be represented by a 4x4 matrix.

適用於