Example #1
0
 public static double Cross(Vector2D a, Vector2D b)
 {
     return a.X * b.Y - b.X * a.Y;
 }
Example #2
0
 public static double Dot(Vector2D a, Vector2D b)
 {
     return a.X * b.X + a.Y * b.Y;
 }