Java Array Cross Product cross(double[] p, double[] q)

Here you can find the source of cross(double[] p, double[] q)

Description

cross

License

Open Source License

Declaration

private static double[] cross(double[] p, double[] q) 

Method Source Code

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

public class Main {
    private static double[] cross(double[] p, double[] q) {
        return new double[] { p[1] * q[2] - p[2] * q[1], p[2] * q[0] - p[0] * q[2], p[0] * q[1] - p[1] * q[0] };
    }//from  www  .j  a v a2 s.  c om
}

Related

  1. cross(double v0x, double v0y, double v1x, double v1y)
  2. cross(double v1[], double v2[])
  3. cross(double[] vec1, double[] vec2, double[] outvec)
  4. cross(final double[] a, final double[] b, final double[] c)
  5. cross(final double[] left, final double[] right)
  6. cross(float[] v1, float[] v2, float[] out)