Here you can find the source of cross(float[] v1, float[] v2, float[] out)
public static void cross(float[] v1, float[] v2, float[] out)
//package com.java2s; //License from project: Open Source License public class Main { public static float[] cross(float[] v1, float[] v2) { float[] out = new float[3]; cross(v1, v2, out);//from w w w . j ava2 s.com return out; } public static void cross(float[] v1, float[] v2, float[] out) { out[0] = v1[1] * v2[2] - v1[2] * v2[1]; out[1] = v1[2] * v2[0] - v1[0] * v2[2]; out[2] = v1[0] * v2[1] - v1[1] * v2[0]; } }