Example #1
0
 public static double Length(Vector v)
 {
     return Math.Sqrt(v.X * v.X + v.Y * v.Y);
 }
Example #2
0
 public static int Dot(Vector v0, Vector v1)
 {
     return v0.X * v1.X + v0.Y + v1.Y;
 }