MoveRectToLoc
- Parameters
-
whichRect rect
newCenterLoc location
- 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.
Does nothing if either location is null or invalid.
- bug
-
This can be used to move the rectangle outside of the map bounds, bypassing the limiting checks.
- note
-
See:
Rect
,SetRect
,SetRectFromLoc
,MoveRectTo
. - patch
-
1.00
- Source
- common.j (suggest an edit or discuss on Github)
- return type
-
nothing
- Source code
-
native MoveRectToLoc takes rect whichRect, location newCenterLoc returns nothing