MoveRectTo
- Parameters
whichRect rectnewCenterX realnewCenterY 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 (suggest an edit or discuss on Github)
- return type
nothing- Source code
native MoveRectTo takes rect whichRect, real newCenterX, real newCenterY returns nothing