@Test public void testDot() { assertEquals(-5.25, SimpleVectorMath.dot(VEC1, VEC2)); }
public static double dot(float[] x, float[] y) { int length = x.length; double dot = 0.0; for (int i = 0; i < length; i++) { dot += x[i] * y[i]; } return dot; }
SimpleVectorMath { public static double dot(float[] x, float[] y) { int length = x.length; double dot = 0.0; for (int i = 0; i < length; i++) { dot += x[i] * y[i]; } return dot; } }
SimpleVectorMath { public static double dot(float[] x, float[] y) { int length = x.length; double dot = 0.0; for (int i = 0; i < length; i++) { dot += x[i] * y[i]; } return dot; } private  SimpleVectorMath(); }
SimpleVectorMath { public static double dot(float[] x, float[] y) { int length = x.length; double dot = 0.0; for (int i = 0; i < length; i++) { dot += x[i] * y[i]; } return dot; } private  SimpleVectorMath(); static double dot(float[] x, float[] y); static double norm(float[] x); static void normalize(float[] x); }
SimpleVectorMath { public static double dot(float[] x, float[] y) { int length = x.length; double dot = 0.0; for (int i = 0; i < length; i++) { dot += x[i] * y[i]; } return dot; } private  SimpleVectorMath(); static double dot(float[] x, float[] y); static double norm(float[] x); static void normalize(float[] x);  }