Quaternion.Subtract(Quaternion, Quaternion) Quaternion.Subtract(Quaternion, Quaternion) Quaternion.Subtract(Quaternion, Quaternion) Quaternion.Subtract(Quaternion, Quaternion) Method

定義

將第二個四元數中的每個元素減去第一個四元數中相對應的元素。Subtracts each element in a second quaternion from its corresponding element in a first quaternion.

public:
 static System::Numerics::Quaternion Subtract(System::Numerics::Quaternion value1, System::Numerics::Quaternion value2);
public static System.Numerics.Quaternion Subtract (System.Numerics.Quaternion value1, System.Numerics.Quaternion value2);
static member Subtract : System.Numerics.Quaternion * System.Numerics.Quaternion -> System.Numerics.Quaternion
Public Shared Function Subtract (value1 As Quaternion, value2 As Quaternion) As Quaternion

參數

value1
Quaternion Quaternion Quaternion Quaternion

第一個四元數。The first quaternion.

value2
Quaternion Quaternion Quaternion Quaternion

第二個四元數。The second quaternion.

傳回

包含值的四元數,此值為從 value2 中的每個元素減去 value1 中相對應的元素所產生。The quaternion containing the values that result from subtracting each element in value2 from its corresponding element in value1.

適用於