Here you can find the source of SubtractVec3D(double[] vec3Ret, double[] vec3A, double[] vec3B)
public static void SubtractVec3D(double[] vec3Ret, double[] vec3A, double[] vec3B)
//package com.java2s; //License from project: Open Source License public class Main { public static void SubtractVec3D(double[] vec3Ret, double[] vec3A, double[] vec3B) { vec3Ret[0] = vec3A[0] - vec3B[0]; vec3Ret[1] = vec3A[1] - vec3B[1]; vec3Ret[2] = vec3A[2] - vec3B[2]; }//ww w. j a va2 s. co m }