max static method

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

Implementation

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