Returns the Euclidean distance between this vector and the specified vector.
Namespace: Algs4NetAssembly: Algs4Net (in Algs4Net.dll) Version: 1.0.0.0 (1.0.0.0)
Syntaxpublic double DistanceTo(
Vector that
)
Parameters
- that
- Type: Algs4NetVector
the other vector
Return Value
Type:
Doublethe Euclidean distance between this vector and that vector
ExceptionsException | Condition |
---|
ArgumentException | if the dimensions of the two vectors are not equal |
See Also