Rect

概述

Rect 是 Aspose.3D FOSS 中用于 Python 的一个类。

用于表示矩形的类

此类为 Python 程序中的 Rect 对象声明了 2 个方法。可用的方法包括:__init__、contains。在安装了 Aspose.3D FOSS for Python 包之后,所有公共成员对任何 Python 应用程序均可访问。属性:bottom、height、left、right、top、width,以及另外 2 个。

属性

名称类型访问描述
widthint读写获取或设置宽度。
heightint读写获取或设置高度。
xint读写获取或设置 x。
yint读写获取或设置 y。
leftint读取获取左侧。
rightint读取获取右侧。
topint读取获取顶部。
bottomint读取获取底部。

方法

签名描述
__init__(x: int, y: int, width: int, height: int)Calls init(x, y, width, height) 在此 Rect 实例上。
contains(x: int, y: int) → bool如果指定的点位于矩形的边界内,则返回 True。

另请参阅

 中文