Matrix.Equality(Matrix, Matrix) Operator
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 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 ( = ) : System.Windows.Media.Matrix * System.Windows.Media.Matrix -> bool
Public Shared Operator == (matrix1 As Matrix, matrix2 As Matrix) As Boolean
true
if matrix1
and matrix2
are identical; otherwise, false
.
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);
}
नोट
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.
उत्पाद | संस्करण |
---|---|
.NET Framework | 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
Windows Desktop | 3.0, 3.1, 5, 6, 7, 8, 9 |
.NET प्रतिक्रिया
.NET एक ओपन सोर्स प्रोजेक्ट है. प्रतिक्रिया प्रदान करने के लिए लिंक का चयन करें: