Rectangle.set()

Set this rectangle with position and size given as parameter

Parameters

NameTypeDescription
1positionXnumber
2positionYnumber
3sizeXnumber
4sizeYnumber

Return value

Rectangle

the rectangle with its new values

Usage