Method Dot
- Namespace
- Zyl.VectorTraits.Impl.AVector
- Assembly
- VectorTraits.dll
Dot(Vector<float>, Vector<float>)
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 virtual float Dot(Vector<float> left, Vector<float> right)
Parameters
left
Vector<float>The vector that will be dotted with
right
(将会与right
进行点积的向量).right
Vector<float>The vector that will be dotted with
left
(将会与left
进行点积的向量).
Returns
- float
The dot product of
left
andright
(left
与right
的点积).
- See Also
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 virtual 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
Dot(Vector<sbyte>, Vector<sbyte>)
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]
.
[CLSCompliant(false)]
public virtual sbyte Dot(Vector<sbyte> left, Vector<sbyte> right)
Parameters
left
Vector<sbyte>The vector that will be dotted with
right
(将会与right
进行点积的向量).right
Vector<sbyte>The vector that will be dotted with
left
(将会与left
进行点积的向量).
Returns
- sbyte
The dot product of
left
andright
(left
与right
的点积).
- See Also
Dot(Vector<byte>, Vector<byte>)
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 virtual byte Dot(Vector<byte> left, Vector<byte> right)
Parameters
left
Vector<byte>The vector that will be dotted with
right
(将会与right
进行点积的向量).right
Vector<byte>The vector that will be dotted with
left
(将会与left
进行点积的向量).
Returns
- byte
The dot product of
left
andright
(left
与right
的点积).
- See Also
Dot(Vector<short>, Vector<short>)
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 virtual short Dot(Vector<short> left, Vector<short> right)
Parameters
left
Vector<short>The vector that will be dotted with
right
(将会与right
进行点积的向量).right
Vector<short>The vector that will be dotted with
left
(将会与left
进行点积的向量).
Returns
- short
The dot product of
left
andright
(left
与right
的点积).
- See Also
Dot(Vector<ushort>, Vector<ushort>)
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]
.
[CLSCompliant(false)]
public virtual ushort Dot(Vector<ushort> left, Vector<ushort> right)
Parameters
left
Vector<ushort>The vector that will be dotted with
right
(将会与right
进行点积的向量).right
Vector<ushort>The vector that will be dotted with
left
(将会与left
进行点积的向量).
Returns
- ushort
The dot product of
left
andright
(left
与right
的点积).
- See Also
Dot(Vector<int>, Vector<int>)
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 virtual int Dot(Vector<int> left, Vector<int> right)
Parameters
left
Vector<int>The vector that will be dotted with
right
(将会与right
进行点积的向量).right
Vector<int>The vector that will be dotted with
left
(将会与left
进行点积的向量).
Returns
- int
The dot product of
left
andright
(left
与right
的点积).
- See Also
Dot(Vector<uint>, Vector<uint>)
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]
.
[CLSCompliant(false)]
public virtual uint Dot(Vector<uint> left, Vector<uint> right)
Parameters
left
Vector<uint>The vector that will be dotted with
right
(将会与right
进行点积的向量).right
Vector<uint>The vector that will be dotted with
left
(将会与left
进行点积的向量).
Returns
- uint
The dot product of
left
andright
(left
与right
的点积).
- See Also
Dot(Vector<long>, Vector<long>)
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 virtual long Dot(Vector<long> left, Vector<long> right)
Parameters
left
Vector<long>The vector that will be dotted with
right
(将会与right
进行点积的向量).right
Vector<long>The vector that will be dotted with
left
(将会与left
进行点积的向量).
Returns
- long
The dot product of
left
andright
(left
与right
的点积).
- See Also
Dot(Vector<ulong>, Vector<ulong>)
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]
.
[CLSCompliant(false)]
public virtual ulong Dot(Vector<ulong> left, Vector<ulong> right)
Parameters
left
Vector<ulong>The vector that will be dotted with
right
(将会与right
进行点积的向量).right
Vector<ulong>The vector that will be dotted with
left
(将会与left
进行点积的向量).
Returns
- ulong
The dot product of
left
andright
(left
与right
的点积).
- See Also