Java Vector Product vectorProduct(float[] x, float[] y)

Here you can find the source of vectorProduct(float[] x, float[] y)

Description

vector Product

License

Open Source License

Declaration

public static float[] vectorProduct(float[] x, float[] y) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

public class Main {
    public static float[] vectorProduct(float[] x, float[] y) {
        float[] res = new float[3];
        res[0] = x[1] * y[2] - x[2] * y[1];
        res[1] = x[2] * y[0] - x[0] * y[2];
        res[2] = x[0] * y[1] - x[1] * y[0];
        return res;
    }//from   w  w  w  . j  ava 2s . c  o m
}

Related

  1. vector_product(double[] v, double[] w)
  2. vectorDotProduct(double X1, double Y1, double Z1, double X2, double Y2, double Z2)
  3. vectorDotProduct(double[] v1, double[] v2)
  4. vectorProduct(double[] x, boolean isColumnVectorX, double[] y, boolean isColumnVectorY)