max static method

Vector2 max(
  1. Vector2 a,
  2. Vector2 b
)

Implementation

static Vector2 max(Vector2 a, Vector2 b) {
  return Vector2(
    a.x > b.x ? a.x : b.x,
    a.y > b.y ? a.y : b.y,
  );
}