Vector<T>.Subtraction(Vector<T>, Vector<T>) 运算符
定义
从第一个向量中减去第二个向量。Subtracts the second vector from the first.
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.
- right
- Vector<T>
第二个向量。The second vector.
返回
从 left 中减去 right 得到的结果向量。The vector that results from subtracting right from left.
例外
.NET 5.0 及更高版本:不支持 T 类型。.NET 5.0 and later: Type T is not supported.
注解
Subtraction方法为对象定义减法运算 Vector<T> 。The Subtraction method defines the subtraction operation for Vector<T> objects.