Scanbot SDK
Loading...
Searching...
No Matches
Rectangle

Represents a rectangle with integer coordinates in 2D space. More...

Public Member Functions

 __init__ (self, int x, int y, int width, int height)
 Initializes a new instance of the Rectangle class.
 

Public Attributes

 x = x
 The x-coordinate of the top-left corner of the rectangle.
 
 y = y
 The y-coordinate of the top-left corner of the rectangle.
 
 width = width
 The width of the rectangle.
 
 height = height
 The height of the rectangle.
 

Detailed Description

Represents a rectangle with integer coordinates in 2D space.

Constructor & Destructor Documentation

◆ __init__()

__init__ ( self,
int x,
int y,
int width,
int height )

Initializes a new instance of the Rectangle class.

Parameters
xThe x-coordinate of the top-left corner of the rectangle.
yThe y-coordinate of the top-left corner of the rectangle.
widthThe width of the rectangle.
heightThe height of the rectangle.

The documentation for this class was generated from the following file: