共用方式為


Vector.Determinant(Vector, Vector) 方法

定義

計算兩個向量的行列式。

public:
 static double Determinant(System::Windows::Vector vector1, System::Windows::Vector vector2);
public static double Determinant (System.Windows.Vector vector1, System.Windows.Vector vector2);
static member Determinant : System.Windows.Vector * System.Windows.Vector -> double
Public Shared Function Determinant (vector1 As Vector, vector2 As Vector) As Double

參數

vector1
Vector

要評估的第一個向量。

vector2
Vector

要評估的第二個向量。

傳回

Double

vector1vector2 的行列式。

範例

下列範例示範如何計算兩 Vector 個結構的行列式。

private Double determinantExample()
{
    Vector vector1 = new Vector(20, 30);
    Vector vector2 = new Vector(45, 70);
    Double determinant;

    // determinant is equal to 50
    determinant = Vector.Determinant(vector1, vector2);

    return determinant;
}

適用於