Here you can find the source of vectorProduct(float[] x, float[] y)
public static float[] vectorProduct(float[] x, float[] y)
//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 }