Rectangle.setPosition()

Set this rectangle with position and size given as parameter

Parameters

NameTypeDescription
1positionXnumber
2positionYnumber

Return value

Rectangle

the rectangle with its new values

Usage