Compartilhar via


Vector.Determinant(Vector, Vector) Método

Definição

Calcula o determinante de dois vetores.

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

Parâmetros

vector1
Vector

O primeiro vetor a ser avaliado.

vector2
Vector

O segundo vetor a ser avaliado.

Retornos

O determinante de vector1 e vector2.

Exemplos

O exemplo a seguir mostra como calcular o determinante de duas Vector estruturas.

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

Aplica-se a