public static void MaxToOut(Vec2 a, Vec2 b, Vec2 result) { result.X = a.X > b.X ? a.X : b.X; result.Y = a.Y > b.Y ? a.Y : b.Y; }