Home > Extreme Optimization Mathematics Library for .NET > Reference > Extreme.Mathematics.LinearAlgebra Namespace > Vector Class > Methods > Vector.DotProduct Method


Extreme Optimization Mathematics Library for .NET

Vector.DotProduct Method (Vector)

Returns the dot product of this vector with another vector.

[Visual Basic]
Overridable Overloads Public Function DotProduct( _
   ByVal vector As Vector _
) As Double
[C#]
public virtual double DotProduct(
   Vector vector
);

Parameters

vector
The second Vector.

Return Value

The dot product of the two vectors.

Exceptions

Exception TypeCondition
ArgumentNullExceptionvector is a null reference (Nothing in Visual Basic).
DimensionMismatchException The length of vector does not equal the length of this instance.

See Also

Vector Class | Extreme.Mathematics.LinearAlgebra Namespace | Vector.DotProduct Overload List