Matrix.M12 プロパティ

定義

この Matrix 構造体の第 1 行、第 2 列の値を取得または設定します。

public:
 property double M12 { double get(); void set(double value); };
public double M12 { get; set; }
member this.M12 : double with get, set
Public Property M12 As Double

プロパティ値

Double

この Matrix の第 1 行、第 2 列の値。 既定値は 0 です。

次の例は、2 つの Matrix 構造体を乗算する方法と、宣言されたときと構造体が宣言された後に Matrix 値を割り当てる方法を示しています。

private void multiplicationExample()
{

    Matrix matrix1 = new Matrix(5, 10, 15, 20, 25, 30);
    Matrix matrix2 = new Matrix(2, 4, 6, 8, 10, 12);
    
    // matrixResult is equal to (70,100,150,220,240,352) 
    Matrix matrixResult = Matrix.Multiply(matrix1, matrix2);
    
    // matrixResult2 is also
    // equal to (70,100,150,220,240,352) 
    Matrix matrixResult2 = matrix1 * matrix2;
}

注釈

次の表は、.Matrix

M11 M12 0
M21 M22 0
OffsetX OffsetY 1

適用対象