Matrix.M11 プロパティ

定義

この Matrix 構造体の最初の行と最初の列の値を取得または設定します。

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

プロパティ値

この Matrixの最初の行と最初の列の値。 既定値は 1です。

次の例は、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;
}

適用対象