Tests for equality of two vectors. Two vectors are equal if they have the same dimensions and all values are equal.

Namespace:  CenterSpace.NMath.Core
Assembly:  NMath (in NMath.dll) Version: 5.1.0.0

Syntax

C#
public static bool operator ==(
	FloatVector v,
	FloatVector w
)
Visual Basic (Declaration)
Public Shared Operator = ( _
	v As FloatVector, _
	w As FloatVector _
) As Boolean
Visual C++
public:
static bool operator ==(
	FloatVector^ v, 
	FloatVector^ w
)

Parameters

v
Type: CenterSpace.NMath.Core..::.FloatVector
The left-hand vector.
w
Type: CenterSpace.NMath.Core..::.FloatVector
The right-hand vector.

Return Value

True if the vectors are of the same dimension and contain the same values, or if both vectors are null; otherwise, false.

Remarks

The comparison of the values is done using operator== for floats. Therefore, the values of the vectors must be exactly equal for this method to return true.

See Also