public double Distance(Int2 b) { return(Math.Sqrt(DistanceSquared(b))); }
public int DistanceSquared(Int2 b) { return((this - b).LengthSquared); }
public static V <int> ToVector(this Int2 p) { return(new V <int>(new int[] { p.X, p.Y })); }
public static Int2 Max(Int2 a, Int2 b) { return(new Int2(Math.Max(a.X, b.X), Math.Max(a.Y, b.Y))); }
public Float2(Int2 xy) { X = xy.X; Y = xy.Y; }