Method Dot
- Namespace
- Zyl.VectorTraits.Impl.AVector
- Assembly
- VectorTraits.dll
Dot(Vector<double>, Vector<double>)
Computes the dot product of two vectors (计算两个向量的点积).
Mnemonic: rt := left[0]*right[0] + left[1]*right[1] + left[2]*right[2] + ... + left[Count-1]*right[Count-1]
.
public static double Dot(Vector<double> left, Vector<double> right)
Parameters
left
Vector<double>The vector that will be dotted with
right
(将会与right
进行点积的向量).right
Vector<double>The vector that will be dotted with
left
(将会与left
进行点积的向量).
Returns
- double
The dot product of
left
andright
(left
与right
的点积).
- See Also