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