Skip to content

bounds

Model definition for bounds.

CLASS DESCRIPTION
Bounds

Bounds specify an area in some (x, y) coordinate system.

Classes

Bounds dataclass

Bounds(*, x: float, y: float, width: float, height: float)

Bounds specify an area in some (x, y) coordinate system.

ATTRIBUTE DESCRIPTION
height

A real number that represents the height of the rectangle.

TYPE: float

width

A real number that represents the width of the rectangle.

TYPE: float

x

A real number that represents the x-coordinate of the rectangle.

TYPE: float

y

A real number that represents the y-coordinate of the rectangle.

TYPE: float

Attributes

height class-attribute instance-attribute
height: float = field(metadata={'type': 'Attribute', 'required': True})

A real number that represents the height of the rectangle.

width class-attribute instance-attribute
width: float = field(metadata={'type': 'Attribute', 'required': True})

A real number that represents the width of the rectangle.

x class-attribute instance-attribute
x: float = field(metadata={'type': 'Attribute', 'required': True})

A real number that represents the x-coordinate of the rectangle.

y class-attribute instance-attribute
y: float = field(metadata={'type': 'Attribute', 'required': True})

A real number that represents the y-coordinate of the rectangle.

Functions