Matrix.Multiply(Matrix, Matrix) 메서드

정의

Matrix 구조체에 다른 Matrix 구조체를 곱합니다.

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

매개 변수

trans1
Matrix

곱할 첫 번째 Matrix 구조체입니다.

trans2
Matrix

곱할 두 번째 Matrix 구조체입니다.

반환

Matrix

trans1trans2를 곱한 결과입니다.

예제

다음 예제에서는 두 곱할 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;
}

설명

행렬 곱 가환 적 아닙니다. 곱한 trans1 하 여 trans2 곱한 같지는 않습니다 trans2trans1입니다.

적용 대상

추가 정보