Matrix.Multiply(Matrix, Matrix) Operatör

Tanım

Bir yapıyı başka Matrix bir Matrix yapıyla çarpar.

public:
 static System::Windows::Media::Matrix operator *(System::Windows::Media::Matrix trans1, System::Windows::Media::Matrix trans2);
public static System.Windows.Media.Matrix operator * (System.Windows.Media.Matrix trans1, System.Windows.Media.Matrix trans2);
static member ( * ) : System.Windows.Media.Matrix * System.Windows.Media.Matrix -> System.Windows.Media.Matrix
Public Shared Operator * (trans1 As Matrix, trans2 As Matrix) As Matrix

Parametreler

trans1
Matrix

Çarpmak için ilk Matrix yapı.

trans2
Matrix

Çarpmak için ikinci Matrix yapı.

Döndürülenler

ile trans2çarpmanın trans1 sonucu.

Örnekler

Aşağıdaki örnekte iki Matrix yapının nasıl çarp olduğu gösterilmektedir.

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;
}

Açıklamalar

Matris çarpması işlemsel değildir. ile çarpma trans1trans2 , ile çarpmayla trans2trans1aynı değildir.

Şunlara uygulanır

Ayrıca bkz.