Java Array Subtract SubtractVec2D(double[] vec2Ret, double[] vec2A, double[] vec2B)

Here you can find the source of SubtractVec2D(double[] vec2Ret, double[] vec2A, double[] vec2B)

Description

Subtract Vec D

License

Open Source License

Declaration

public static void SubtractVec2D(double[] vec2Ret, double[] vec2A, double[] vec2B) 

Method Source Code

//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];
    }
}

Related

  1. subtractMin(Double[] array)
  2. subtractRange(double[] accumulator, int offset, double[] values)
  3. subtractSignals(double[] s1, double[] s2)
  4. subtractTo(double a[][][], double b[][][])
  5. subtractUnitsArray(int[] units1, int[] units2)
  6. SubtractVec3D(double[] vec3Ret, double[] vec3A, double[] vec3B)