Table of Contents

Method Dot

Namespace
Zyl.VectorTraits
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 static 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 and right (leftright的点积).

See Also
Dot<T>(Vector<T>, Vector<T>)

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 and right (leftright的点积).

See Also
Dot<T>(Vector<T>, Vector<T>)

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 static 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 and right (leftright的点积).

See Also
Dot<T>(Vector<T>, Vector<T>)

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 static 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 and right (leftright的点积).

See Also
Dot<T>(Vector<T>, Vector<T>)

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 static 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 and right (leftright的点积).

See Also
Dot<T>(Vector<T>, Vector<T>)

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 static 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 and right (leftright的点积).

See Also
Dot<T>(Vector<T>, Vector<T>)

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 static 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 and right (leftright的点积).

See Also
Dot<T>(Vector<T>, Vector<T>)

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 static 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 and right (leftright的点积).

See Also
Dot<T>(Vector<T>, Vector<T>)

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 static 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 and right (leftright的点积).

See Also
Dot<T>(Vector<T>, Vector<T>)

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 static 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 and right (leftright的点积).

See Also
Dot<T>(Vector<T>, Vector<T>)