max method

Vector2 max(
  1. Vector2 v
)

Implementation

Vector2 max(Vector2 v) {
  x = Math.max(x, v.x);
  y = Math.max(y, v.y);

  return this;
}