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



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

Syntax

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

Parameters

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

Return Value

A CVector 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