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
leftVector<double>The vector that will be dotted with
right(将会与right进行点积的向量).rightVector<double>The vector that will be dotted with
left(将会与left进行点积的向量).
Returns
- double
The dot product of
leftandright(left与right的点积).
- See Also