Matrix.Inequality(Matrix, Matrix) Operator
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Determines whether the two specified Matrix structures are not identical.
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 op_Inequality : System.Windows.Media.Matrix * System.Windows.Media.Matrix -> bool
Public Shared Operator != (matrix1 As Matrix, matrix2 As Matrix) As Boolean
Parameters
Returns
true
if matrix1
and matrix2
are not identical; otherwise, false
.
Examples
The following example shows how to check two Matrix structures for equality.
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);
}
Remarks
Note
A Matrix stores its values as doubles. Because the value of a Double can lose precision when arithmetic operations are performed on it, a comparison between two Double structures that are logically equal might fail.
Applies to
GitHub에서 Microsoft와 공동 작업
이 콘텐츠의 원본은 GitHub에서 찾을 수 있으며, 여기서 문제와 끌어오기 요청을 만들고 검토할 수도 있습니다. 자세한 내용은 참여자 가이드를 참조하세요.
.NET