Java examples for java.lang:Math Matrix
dot Tuple3d
import javax.vecmath.Tuple3d; import javax.vecmath.Vector3d; public class Main{ static double dot(Tuple3d v0, Tuple3d v1) { return (v0.x * v1.x + v0.y * v1.y + v0.z * v1.z); }//from w ww . j av a2s . c om }