Here you can find the source of minus(double[] p, double[] q)
private static double[] minus(double[] p, double[] q)
//package com.java2s; //License from project: Open Source License public class Main { private static double[] minus(double[] p, double[] q) { return new double[] { p[0] - q[0], p[1] - q[1], p[2] - q[2] }; }/*from w ww . j a v a 2 s . c om*/ }