Calculates the dot product of two vectors.

Namespace:  CenterSpace.NMath.Core
Assembly:  NMath (in NMath.dll) Version: 5.1.0.0

Syntax

C#
public static float Dot(
	FloatVector v,
	FloatVector w
)
Visual Basic (Declaration)
Public Shared Function Dot ( _
	v As FloatVector, _
	w As FloatVector _
) As Single
Visual C++
public:
static float Dot(
	FloatVector^ v, 
	FloatVector^ w
)

Return Value

The dot product of v and w.

Remarks

d = v[0]w[0] + v[1]w[1]...

Exceptions

ExceptionCondition
CenterSpace.NMath.Core..::.MismatchedSizeException Thrown if v and w have different lengths.
CenterSpace.NMath.Core..::.InvalidArgumentException Thrown if v or w has a zero length.

See Also