Returns a new size with the width and height scaled by the given factor.
Size scale(double factor) { return Size(width * factor, height * factor); }