Copy of this with the x component clamped between min and max.
min
max
Vector2 clampedToX(double min, double max) => .new(x.clamp(min, max).toDouble(), y);