Vector.Equals Method


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Compares two vectors for equality.

Namespace:   System.Windows
Assembly:  WindowsBase (in WindowsBase.dll)


Determines whether the specified Object is a Vector structure and, if it is, whether it has the same X and Y values as this vector.(Overrides ValueType.Equals(Object).)


Compares two vectors for equality.

System_CAPS_pubmethodSystem_CAPS_staticEquals(Vector, Vector)

Compares the two specified vectors for equality.

A vector's X and Y properties are described using Double values. 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.

Return to top