Here you can find the source of dotProd(float[] a, float[] b)
private static float dotProd(float[] a, float[] b)
//package com.java2s; //License from project: LGPL public class Main { private static float dotProd(float[] a, float[] b) { return a[0] * b[0] + a[1] * b[1] + a[2] * b[2]; }/*from w ww.j a v a 2 s . co m*/ }