Here you can find the source of SubtractVec2D(double[] vec2Ret, double[] vec2A, double[] vec2B)
public static void SubtractVec2D(double[] vec2Ret, double[] vec2A, double[] vec2B)
//package com.java2s; //License from project: Open Source License public class Main { public static void SubtractVec2D(double[] vec2Ret, double[] vec2A, double[] vec2B) { vec2Ret[0] = vec2A[0] - vec2B[0]; vec2Ret[1] = vec2A[1] - vec2B[1]; }//w w w .j a v a2 s . c o m public static void SubtractVec2D(int[] vec2Ret, int[] vec2A, int[] vec2B) { vec2Ret[0] = vec2A[0] - vec2B[0]; vec2Ret[1] = vec2A[1] - vec2B[1]; } }