.NET Matrix Library
Addition(Vector,Vector) Operator
See Also  Send Feedback


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

Syntax

Visual Basic (Declaration) 
Overloads Public Operator +( _
   ByVal x As Vector, _
   ByVal y As Vector _
) As Vector
C# 
public Vector operator +( 
   Vector x,
   Vector y
)
C++/CLI 
public:
Vector^ operator +( 
   Vector^ x,
   Vector^ y
)

Parameters

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

Return Value

A Vector object representing 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