clamp method
Clamps each component of this vector between the corresponding components of min and max.
Implementation
Vector2D clamp(Vector2D min, Vector2D max) => .vec2(
math.min(max.x, math.max(min.x, x)),
math.min(max.y, math.max(min.y, y)),
);