min static method

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

Implementation

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