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



x
A Vector instance on the left side of the addition operator.
y
A Vector instance on the right side of the addition operator.
Adds two vectors.

Syntax

Visual Basic (Declaration) 
Public Overloads Shared Function Add( _
   ByVal x As Vector, _
   ByVal y As Vector _
) As Vector
Visual Basic (Usage)Copy Code
Dim x As Vector
Dim y As Vector
Dim value As Vector
 
value = Vector.Add(x, y)
C# 
public static Vector Add( 
   Vector x,
   Vector y
)
C++/CLI 
public:
static Vector^ Add( 
   Vector^ x,
   Vector^ y
) 

Parameters

x
A Vector instance on the left side of the addition operator.
y
A Vector instance on the right side of the addition operator.

Return Value

A Vector object that represents the result of the addition.

Exceptions

ExceptionDescription
SizeMismatchExceptionx, y are not of the same length.

Requirements

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

See Also

.NET Matrix Library