• 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.

    Parameters

    • whichRect: HandleHolder<"rect">
    • newCenterX: number
    • newCenterY: number

    Returns void

    Bug

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

    Note

    See: Rect, SetRect, SetRectFromLoc, MoveRectToLoc.

Generated using TypeDoc