Skip to content

Classes

GlobalDescription
Rectangle

Rectangle

Functions

GlobalDescription
initialize(x, y, width, height)

初始化矩形 Initialize the rectangle.

Rectangle

Rectangle

Kind: global class


new Rectangle(x, y, width, height)

矩形类,用于表示二维平面上的矩形区域
The rectangle class.

ParamTypeDescription
xNumber左上角的 x 坐标 - The x coordinate for the upper-left corner
yNumber左上角的 y 坐标 - The y coordinate for the upper-left corner
widthNumber矩形的宽度 - The width of the rectangle
heightNumber矩形的高度 - The height of the rectangle

initialize(x, y, width, height)

初始化矩形
Initialize the rectangle.

Kind: global function

ParamTypeDescription
xNumber左上角的 x 坐标 - The x coordinate for the upper-left corner
yNumber左上角的 y 坐标 - The y coordinate for the upper-left corner
widthNumber矩形的宽度 - The width of the rectangle
heightNumber矩形的高度 - The height of the rectangle

贡献者

暂无相关贡献者

页面历史

暂无最近变更历史
最近更新