Adds two Vector values.
Namespace: Extreme.Mathematics.LinearAlgebra
Assembly: Extreme.Numerics (Extreme.Numerics)
Syntax
| Visual Basic (Declaration) |
|---|
Public Shared Operator + ( _ vector1 As Vector, _ vector2 As Vector _ ) As Vector |
| C# |
|---|
public static Vector operator + ( Vector vector1, Vector vector2 ) |
| C++ |
|---|
public: static Vector^ operator + ( Vector^ vector1, Vector^ vector2 ) |
Parameters
- vector1 (Extreme.Mathematics.LinearAlgebra.Vector)
- The first Vector.
- vector2 (Extreme.Mathematics.LinearAlgebra.Vector)
- The second Vector.
Return Value
A Vector whose components are the sum of the corresponding components of vector1 and vector2.
Exceptions
| Exception | Condition |
|---|---|
| ArgumentNullException | vector1 is nullNothingnullptr -or- vector2 is nullNothingnullptr |
| DimensionMismatchException | vector1 and vector2 do not have the same length. |