Equality(Vector3D, Vector3D) Operator
Compares two Vector3D structures for equality.
public: static bool operator ==(System::Windows::Media::Media3D::Vector3D vector1, System::Windows::Media::Media3D::Vector3D vector2);
public static bool operator == (System.Windows.Media.Media3D.Vector3D vector1, System.Windows.Media.Media3D.Vector3D vector2);
static member ( = ) : System.Windows.Media.Media3D.Vector3D * System.Windows.Media.Media3D.Vector3D -> bool
Public Shared Operator == (vector1 As Vector3D, vector2 As Vector3D) As Boolean
The following example shows how to use the overloaded equality operator to check if two Vector3D structures are equal.
// Checks if two Vector3D structures are equal using the overloaded equality operator. Vector3D vector1 = new Vector3D(20, 30, 40); Vector3D vector2 = new Vector3D(45, 70, 80); Boolean areEqual; areEqual = (vector1 == vector2); // areEqual is False
' Checks if two Vector3D structures are equal using the overloaded equality operator. Dim vector1 As New Vector3D(20, 30, 40) Dim vector2 As New Vector3D(45, 70, 80) Dim areEqual As Boolean areEqual = (vector1 = vector2) ' areEqual is False