Example #1
0
 public static double cross(Vector a, Vector b) {
   return a.getX() * b.getY() - a.getY() * b.getX();
 }
Example #2
0
 public static double dot(Vector a, Vector b) {
   return a.getX() * b.getX() + a.getY() * b.getY();
 }