CVBpy 14.1
Size2D Class Reference

Stores a pair of numbers that represents the width and the height of a subject, typically a rectangle. More...

Inherits object.

Public Member Functions

None Size2D (self, float width=0.0, float height=0.0)
 Either create an empty size, or create a size with given width and height. More...
 

Properties

 height = property
 float: Gets or sets the vertical component of the size.
 
 width = property
 float: Gets or sets the horizontal component of the size.
 

Detailed Description

Stores a pair of numbers that represents the width and the height of a subject, typically a rectangle.

Constructor & Destructor Documentation

◆ Size2D()

None Size2D (   self,
float   width = 0.0,
float   height = 0.0 
)

Either create an empty size, or create a size with given width and height.

Parameters

width : float Horizontal component of the size.

height : float Vertical component of the size.