Matrix.Equality(Matrix, Matrix) 연산자

정의

지정한 두 Matrix 구조체가 같은지 여부를 결정합니다.

public:
 static bool operator ==(System::Windows::Media::Matrix matrix1, System::Windows::Media::Matrix matrix2);
public static bool operator == (System.Windows.Media.Matrix matrix1, System.Windows.Media.Matrix matrix2);
static member ( = ) : System.Windows.Media.Matrix * System.Windows.Media.Matrix -> bool
Public Shared Operator == (matrix1 As Matrix, matrix2 As Matrix) As Boolean

매개 변수

matrix1
Matrix

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

matrix2
Matrix

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

반환

Boolean

matrix1matrix2가 같으면 true이고, 그렇지 않으면 false입니다.

예제

다음 예제에서는 두 개를 선택 하는 방법을 보여 줍니다 Matrix 구조체가 같은지 여부.

private void equalityExample()
{

    Matrix matrix1 = new Matrix(5, 10, 15, 20, 25, 30);
    Matrix matrix2 = new Matrix(5, 10, 15, 20, 25, 30);
    
    Boolean result;
    
    // result is true.
    result = (matrix1 == matrix2);            
    
    // result is false.
    result = (matrix1 != matrix2);
}

설명

참고

Matrix double로 해당 값을 저장 합니다. 때문에 값을 Double 산술 연산을 수행 하는, 두 개를 비교 하는 경우 정밀도 떨어질 수 Double 논리적으로 동일한 구조 실패할 수 있습니다.

적용 대상

추가 정보