public override bool Equals(object obj)
        {
            PolyVector v = (PolyVector)obj;

            return(X == v.X && Y == v.Y);
        }
 public float DistanceTo(PolyVector vector)
 {
     return((float)Math.Sqrt(Math.Pow(vector.X - this.X, 2) + Math.Pow(vector.Y - this.Y, 2)));
 }
 public bool Equals(PolyVector v)
 {
     return(X == v.X && Y == v.Y);
 }
 public float DotProduct(PolyVector vector)
 {
     return(this.X * vector.X + this.Y * vector.Y);
 }
 static public PolyVector FromPoint(Point p)
 {
     return(PolyVector.FromPoint(p.X, p.Y));
 }