max method

Size max(
  1. Size other
)

Returns the size that is the component-wise maximum of this size and the given other size.

Implementation

Size max(Size other) {
  return Size(
    math.max(width, other.width),
    math.max(height, other.height),
  );
}