max method

Coordinate max(
  1. Coordinate maxCoor
)

Implementation

Coordinate max(Coordinate maxCoor)
{
  this.x = Math.max(this.x, maxCoor.x);
  this.y = Math.max(this.y, maxCoor.y);
  return this;
}