# Vector<T>.EqualsVector<T>.EqualsVector<T>.EqualsVector<T>.Equals Method

## Definition

 Equals(Vector) Equals(Vector) Equals(Vector) Equals(Vector) Returns a value that indicates whether this instance is equal to a specified vector. Equals(Object) Equals(Object) Equals(Object) Equals(Object) Returns a value that indicates whether this instance is equal to a specified object.

## Equals(Vector<T>)Equals(Vector<T>)Equals(Vector<T>)Equals(Vector<T>)

Returns a value that indicates whether this instance is equal to a specified vector.

``````public:
virtual bool Equals(System::Numerics::Vector<T> other);``````
``public bool Equals (System.Numerics.Vector<T> other);``
``override this.Equals : System.Numerics.Vector<'T (requires 'T : struct)> -> bool``
``Public Function Equals (other As Vector(Of T)) As Boolean``

#### Parameters

other
Vector<T> Vector<T> Vector<T> Vector<T>

The vector to compare with this instance.

#### Returns

`true` if the current instance and `other` are equal; otherwise, `false`.

### Remarks

Two vectors are equal if they are of the same type, have the same number of values, and each value in the current instance is equal to the corresponding value in `other`.

## Equals(Object)Equals(Object)Equals(Object)Equals(Object)

Returns a value that indicates whether this instance is equal to a specified object.

``````public:
override bool Equals(System::Object ^ obj);``````
``public override bool Equals (object obj);``
``override this.Equals : obj -> bool``
``Public Overrides Function Equals (obj As Object) As Boolean``

#### Parameters

obj
Object Object Object Object

The object to compare with this instance.

#### Returns

`true` if the current instance and `obj` are equal; otherwise, `false`. The method returns `false` if `obj` is null, or if `obj` is a vector of a different type than the current instance.

### Remarks

Two vectors are equal if they are of the same type, have the same number of values, and each value in the current instance is equal to the corresponding value in `other`.