- result.width = (int) ((width) * multiplicationFactor);
- result.height = (int) ((height) * multiplicationFactor);
+ result.width = (int) ((width) * multiplicationFactor);
+ result.height = (int) ((height) * multiplicationFactor);
+
+ return result;
+ }
+
+ @Override
+ public String toString() {
+ return "Dimension [width=" + width + ", height=" + height + "]";
+ }