Vector<T>.Subtraction(Vector<T>, Vector<T>) 運算子

定義

從第一個向量減去第二個向量。

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)>
static member ( - ) : System.Numerics.Vector<'T> * System.Numerics.Vector<'T> -> System.Numerics.Vector<'T>
Public Shared Operator - (left As Vector(Of T), right As Vector(Of T)) As Vector(Of T)

參數

left
Vector<T>

第一個向量。

right
Vector<T>

第二個向量。

傳回

left 減去 right 所得到的向量。

例外狀況

.NET 5 和更新版本:不支持類型 T

備註

方法 Subtraction 會定義 對象的 Vector<T> 減法運算。

適用於