Method WithX
WithX(int)
Returns new rectangle with size and y-coordinate of this rectangle and the specified x-coordinate.
public readonly RectI WithX(int ax)
Parameters
ax
intNew X position.
Returns
- RectI
Rectangle object with the new x-coordinate.