max method

Vector2 max(
  1. Vector2 o
)

Returns a new vector with each component being the component-wise maximum of this and o.

Implementation

Vector2 max(Vector2 o) => .vec2(
  math.max(x, o.x),
  math.max(y, o.y),
);