Vector<T>.Addition(Vector<T>, Vector<T>) 运算符
定义
将两个向量相加。Adds two vectors together.
public:
static System::Numerics::Vector<T> operator +(System::Numerics::Vector<T> left, System::Numerics::Vector<T> right);
public static System.Numerics.Vector<T> operator + (System.Numerics.Vector<T> left, System.Numerics.Vector<T> right);
static member ( + ) : System.Numerics.Vector<'T (requires 'T : struct)> * System.Numerics.Vector<'T (requires 'T : struct)> -> System.Numerics.Vector<'T (requires 'T : struct)>
Public Shared Operator + (left As Vector(Of T), right As Vector(Of T)) As Vector(Of T)
参数
- left
- Vector<T>
要相加的第一个向量。The first vector to add.
- right
- Vector<T>
要相加的第二个向量。The second vector to add.
返回
总和向量。The summed vector.
例外
.NET 5.0 及更高版本:不支持 T 类型。.NET 5.0 and later: Type T is not supported.
注解
Addition方法定义对象的加法运算 Vector<T> 。The Addition method defines the addition operation for Vector<T> objects.