public static Vec2 Min(Vec2 a, Vec2 b) { return new Vec2(a.X < b.X ? a.X : b.X, a.Y < b.Y ? a.Y : b.Y); }