Here you can find the source of vectorDotProduct(double X1, double Y1, double Z1, double X2, double Y2, double Z2)
public static double vectorDotProduct(double X1, double Y1, double Z1, double X2, double Y2, double Z2)
//package com.java2s; //License from project: Open Source License public class Main { public static double vectorDotProduct(double X1, double Y1, double Z1, double X2, double Y2, double Z2) { double dorProduct = X1 * X2 + Y1 * Y2 + Z1 * Z2; return dorProduct; }/*from w w w . jav a 2 s . c o m*/ }