Vector.Determinant(Vector, Vector) Method

Definition

Calculates the determinant of two vectors.

C#
public static double Determinant(System.Windows.Vector vector1, System.Windows.Vector vector2);

Parameters

vector1
Vector

The first vector to evaluate.

vector2
Vector

The second vector to evaluate.

Returns

The determinant of vector1 and vector2.

Examples

The following example shows how to calculate the determinant of two Vector structures.

C#
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;
}

Applies to

Product Versions
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10