Methods
(async, static) createObj() → {Promise.<Rect>}
构造一个新的 Rect 对象。可通过无参构造和有参构造
有参参数,参数为xMin, yMin, xMax, yMax,均为Number类型
Returns:
- Type
- Promise.<Rect>
(async, static) getXMax() → {Promise.<*>}
获取x最大值
Returns:
- Type
- Promise.<*>
(async, static) getXMin() → {Promise.<*>}
获取x最小值
Returns:
- Type
- Promise.<*>
(async, static) getYMax() → {Promise.<*>}
获取y最大值
Returns:
- Type
- Promise.<*>
(async, static) getYMin() → {Promise.<*>}
获取y最小值
Returns:
- Type
- Promise.<*>
(static) isValid(rect) → {boolean}
判断Rect对象是否有效或是否有用
Parameters:
| Name | Type | Description |
|---|---|---|
rect |
Rect |
Returns:
true:有效;false:无效
- Type
- boolean