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