Rect

Overview

Rect is a class in Aspose.3D FOSS for Python.

A class to represent the rectangle

This class declares 2 methods for Rect objects in Python programs. Available methods include: __init__, contains. All public members are accessible to any Python application after installing the Aspose.3D FOSS for Python package. Properties: bottom, height, left, right, top, width, and 2 more.

Properties

NameTypeAccessDescription
widthintRead/WriteGets or sets the width.
heightintRead/WriteGets or sets the height.
xintRead/WriteGets or sets the x.
yintRead/WriteGets or sets the y.
leftintReadGets the left.
rightintReadGets the right.
topintReadGets the top.
bottomintReadGets the bottom.

Methods

SignatureDescription
__init__(x: int, y: int, width: int, height: int)Calls init(x, y, width, height) on this Rect instance.
contains(x: int, y: int)boolReturns True if the specified point lies within the rectangle’s bounds

See Also