.NET Matrix Library
DotProduct(Vector) Method
See Also  Send Feedback



vector
A Vector object.
Returns the dot product of this vector with another vector.

Syntax

Visual Basic (Declaration) 
Public Overloads Function DotProduct( _
   ByVal vector As Vector _
) As Double
Visual Basic (Usage)Copy Code
Dim instance As Vector
Dim vector As Vector
Dim value As Double
 
value = instance.DotProduct(vector)
C# 
public double DotProduct( 
   Vector vector
)
C++/CLI 
public:
double DotProduct( 
   Vector^ vector
) 

Parameters

vector
A Vector object.

Return Value

A double representing the dot product of this vector with the specified vector.

Exceptions

ExceptionDescription
SizeMismatchExceptionVectors are not of the same size.

Requirements

Target Platforms: Windows 2000, Windows XP, Windows Server 2003 family, Windows Vista, Windows Server 2008 family, Windows 7

See Also

.NET Matrix Library