示例#1
0
文件: Vector2D.cs 项目: ar4ebald/Tron
 public static double Cross(Vector2D a, Vector2D b)
 {
     return a.X * b.Y - b.X * a.Y;
 }
示例#2
0
文件: Vector2D.cs 项目: ar4ebald/Tron
 public static double Dot(Vector2D a, Vector2D b)
 {
     return a.X * b.X + a.Y * b.Y;
 }