Rectangle Class
the Rectangle object is an area defined by its position, as indicated by its top-left corner point (x, y) and by its width and its height.
Constructor
Rectangle
(
-
x -
y -
width -
height
Parameters:
-
xNumberposition of the rectangle
-
yNumberposition of the rectangle
-
widthNumberof the rectangle
-
heightNumberof the rectangle
