Java Utililty Methods Vector Cross Product

List of utility methods to do Vector Cross Product

Description

The list of methods to do Vector Cross Product are organized into topic(s).

Method

float[]crossVec3(final float[] result, final float[] v1, final float[] v2)
cross product vec1 x vec2
result[0] = v1[1] * v2[2] - v1[2] * v2[1];
result[1] = v1[2] * v2[0] - v1[0] * v2[2];
result[2] = v1[0] * v2[1] - v1[1] * v2[0];
return result;
voidCrossVec3D(double[] vec3Ret, double[] vec3A, double[] vec3B)
Cross Vec D
vec3Ret[0] = vec3A[1] * vec3B[2] - vec3A[2] * vec3B[1];
vec3Ret[1] = vec3A[2] * vec3B[0] - vec3A[0] * vec3B[2];
vec3Ret[2] = vec3A[0] * vec3B[1] - vec3A[1] * vec3B[0];