centered

Returns a new Rectangle with the same size as this, but with its center moved to x, y.

Parameters

x

of the point to center

y

of the point to center


Returns a new Rectangle with the same size as this, but with its center moved to at.

Parameters

at

the point to center