Example #1
0
 public double LenTwoVectors(Vector vector)
 {
     return Math.Sqrt(Math.Pow(X - vector.X, 2) + Math.Pow(Y - vector.Y, 2));
 }
Example #2
0
 public Vector Subtract(Vector v)
 {
     return new Vector((X - v.X), Y - v.Y);
 }
Example #3
0
 public Vector Add(Vector v)
 {
     return new Vector(X + v.X, Y + v.Y);
 }