I have two vectors MathNet.Numerics.LinearAlgebra.Generic.Vector<double>
, like the following:
Vector<double> v1 = new DenseVector(new double[] { 1, 2, 3 });
Vector<double> v2 = new DenseVector(new double[] { 3, 2, 1 });
I basicly want to CrossProduct them, however couldn't find an official function. I know cross product is a very easy function which I can write myself, but I want to use the API's function.
Both of the below works for me: (Couldn't find such functions in the API.)
Vector<double> result = v1.CrossProduct(v2);
Vector<double> result = Vector.CrossProduct(v1,v2);
I found this, however couldn't find the function when I tried to write it: API Reference