| Visual Basic (Declaration) | |
|---|---|
Public Overloads Shared Function Add( _ ByVal x As Vector, _ ByVal y As Vector _ ) As Vector | |
| Visual Basic (Usage) | |
|---|---|
Dim x As Vector Dim y As Vector Dim value As Vector value = Vector.Add(x, 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.| Exception | Description |
|---|---|
| SizeMismatchException | x, y are not of the same length. |
Target Platforms: Windows 2000, Windows XP, Windows Server 2003 family, Windows Vista, Windows Server 2008 family, Windows 7