Java Array Cross Product crossProduct(double[] output, double[] a, double[] b)

Here you can find the source of crossProduct(double[] output, double[] a, double[] b)

Description

cross Product

License

Open Source License

Declaration

public static double[] crossProduct(double[] output, double[] a, double[] b) 

Method Source Code

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

public class Main {
    public static double[] crossProduct(double[] output, double[] a, double[] b) {
        output[0] = a[1] * b[2] - a[2] * b[1];
        output[1] = a[2] * b[0] - a[0] * b[2];
        output[2] = a[0] * b[1] - a[1] * b[0];
        return output;
    }/*from w  w  w . jav a 2s. c  o m*/
}

Related

  1. cross33(float u[], float v[])
  2. crossEndForLineVectorAlgebra(double x1, double y1, double x2, double y2, double margin, double width)
  3. crossMuliply(double a, double b, double c)
  4. crossMult(int value, int maximum, int coefficient)
  5. crossProduct(double x1, double y1, double x2, double y2, double x3, double y3)
  6. CrossProduct(final double[] vect1, final double[] vect2)
  7. crossProduct(int ax, int ay, int bx, int by, int cx, int cy)
  8. crossProduct(Object[] firstArray, Object[]... otherArrays)