 | DoubleVectorEquals Method |
Tests for equality of this vector and another vector. Two vectors are equal
if they have the same dimensions and all values are equal.
Namespace: CenterSpace.NMath.CoreAssembly: NMath (in NMath.dll) Version: 7.4
Syntaxpublic override bool Equals(
Object o
)
Public Overrides Function Equals (
o As Object
) As Boolean
public:
virtual bool Equals(
Object^ o
) override
abstract Equals :
o : Object -> bool
override Equals :
o : Object -> bool
Parameters
- o Object
- Another vector.
Return Value
BooleanTrue if the vectors are of the same dimension and contain
the same values; otherwise,
false. Returns
false if
the passed object is
null, or is not a DoubleVector.
Remarks
The comparison of the values is done using operator== for
doubles. Therefore, the values of the vectors must be exactly equal for
this method to return true.
See Also