clampedBetween method
Copy of this with each component clamped between the matching components
of min and max.
Implementation
Vector2 clampedBetween(Vector2 min, Vector2 max) => .new(
x.clamp(min.x, max.x).toDouble(), //
y.clamp(min.y, max.y).toDouble(),
);