Here are a few examples:
var indentedRect = rect.WithX(x => x - 15).WithWidth(w => w - 15);
The above example would be easier with a method that "splits / indents" a rect:
var indentedRect = rect.IndentRight(15); // This code would behave the same as the one from above
Swizzeling could work like this, but it doesn't seem so useful:
var transposedRect = rect.yxhw; //Switches x and y and width and height
While I'm not so sure about swizzeling, being able to easily modfiy© a rect is something that could help a lot.
Here are a few examples:
var indentedRect = rect.WithX(x => x - 15).WithWidth(w => w - 15);
The above example would be easier with a method that "splits / indents" a rect:var indentedRect = rect.IndentRight(15); // This code would behave the same as the one from above
Swizzeling could work like this, but it doesn't seem so useful:var transposedRect = rect.yxhw; //Switches x and y and width and height