MoveRectTo

Parameters
whichRect rect
newCenterX real
newCenterY real
comment

Changes the minimum and maximum point of a rectangle to make it centered around the specified point. Thus it moves the rectangle to a new position.

bug

This can be used to move the rectangle outside of the map bounds, bypassing the limiting checks.

note

See: Rect, SetRect, SetRectFromLoc, MoveRectToLoc.

patch

1.00

Source
common.j
return type
nothing
Source code
native MoveRectTo               takes rect whichRect, real newCenterX, real newCenterY returns nothing