Vector.Dot(Vector<T>, Vector<T>) Vector.Dot(Vector<T>, Vector<T>) Vector.Dot(Vector<T>, Vector<T>) Vector.Dot(Vector<T>, Vector<T>) Method

定义

返回两个向量的点积。Returns the dot product of two vectors.

public:
generic <typename T>
 where T : value class static T Dot(System::Numerics::Vector<T> left, System::Numerics::Vector<T> right);
public static T Dot<T> (System.Numerics.Vector<T> left, System.Numerics.Vector<T> right) where T : struct;
static member Dot : System.Numerics.Vector<'T (requires 'T : struct)> * System.Numerics.Vector<'T (requires 'T : struct)> -> 'T (requires 'T : struct)
Public Shared Function Dot(Of T As Structure) (left As Vector(Of T), right As Vector(Of T)) As T

类型参数

T

向量类型。The vector type. T可以是任何基元数值类型。T can be any primitive numeric type.

参数

left
Vector<T> Vector<T> Vector<T> Vector<T>

第一个向量。The first vector.

right
Vector<T> Vector<T> Vector<T> Vector<T>

第二个向量。The second vector.

返回

T T T T

点积。The dot product.

适用于