Method WithY
WithY(float)
Returns new rectangle with size and x-coordinate of this rectangle and the specified y-coordinate.
public readonly RectD WithY(float ay)
Parameters
ayfloatNew Y position.
Returns
- RectD
Rectangle object with the new y-coordinate.