示例#1
0
文件: AOJ0081.java 项目: t8m8/AOJ
 public static double cross(Vector a, Vector b) {
   return a.getX() * b.getY() - a.getY() * b.getX();
 }
示例#2
0
文件: AOJ0081.java 项目: t8m8/AOJ
 public static double dot(Vector a, Vector b) {
   return a.getX() * b.getX() + a.getY() * b.getY();
 }