public override bool Equals(object other)
        {
            if (!(other is VectorInt2))
            {
                return(false);
            }
            VectorInt2 otherv = (VectorInt2)other;

            return((x == otherv.x) && (y == otherv.y));
        }
 public void Scale(VectorInt2 scale)
 {
     x *= scale.x;
     y *= scale.y;
 }
 public static Vector2 Scale(VectorInt2 left, VectorInt2 right)
 {
     return(new Vector2(left.x * right.x, left.y * right.y));
 }
 public static VectorInt2 Max(VectorInt2 left, VectorInt2 right)
 {
     return(new VectorInt2(Mathf.Max(left.x, right.x), Mathf.Max(left.y, right.y)));
 }
 public static float Distance(VectorInt2 a, VectorInt2 b)
 {
     return((a - b).magnitude);
 }
 public static int Dot(VectorInt2 left, VectorInt2 right)
 {
     return(left.x * right.x + left.y * right.y);
 }